tests: fix torture_server_x11 and add it to tests

Signed-off-by: Praneeth Sarode <praneethsarode@gmail.com>
Reviewed-by: Jakub Jelen <jjelen@redhat.com>
This commit is contained in:
Praneeth Sarode
2025-03-30 16:09:09 +05:30
committed by Jakub Jelen
parent 1434f24911
commit d92a057090
2 changed files with 5 additions and 1 deletions

View File

@@ -100,6 +100,7 @@ if (UNIX AND NOT WIN32)
set(LIBSSH_THREAD_UNIT_TESTS
${LIBSSH_THREAD_UNIT_TESTS}
torture_unit_server
torture_server_x11
)
endif (WITH_SERVER)
endif (UNIX AND NOT WIN32)

View File

@@ -1,3 +1,5 @@
#include "config.h"
#define LIBSSH_STATIC
#include <errno.h>
@@ -6,8 +8,9 @@
#include <sys/types.h>
#include <sys/stat.h>
#include <libssh/libssh.h>
#include "torture.h"
#include "torture_key.h"
#include <libssh/libssh.h>
#define TEST_SERVER_PORT 2222