tests: Try to test signals handling (and fail)

The cmocka captures all signals so I was not able to reproduce the code
path. But leaving the code in for future readers.

Signed-off-by: Jakub Jelen <jjelen@redhat.com>
Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
This commit is contained in:
Jakub Jelen
2022-05-23 20:28:52 +02:00
committed by Andreas Schneider
parent 9e03bf9f1e
commit 6623856e08
2 changed files with 169 additions and 4 deletions

View File

@@ -84,10 +84,15 @@ if (UNIX AND NOT WIN32)
# requires pthread
torture_threads_pki_rsa
)
# Not working correctly
#if (WITH_SERVER)
# add_cmocka_test(torture_server_x11 torture_server_x11.c ${TEST_TARGET_LIBRARIES})
#endif (WITH_SERVER)
if (WITH_SERVER)
# Not working correctly
# add_cmocka_test(torture_server_x11 torture_server_x11.c ${TEST_TARGET_LIBRARIES})
# the signals are not testable under cmocka
# set(LIBSSH_THREAD_UNIT_TESTS
# ${LIBSSH_THREAD_UNIT_TESTS}
# torture_unit_server
# )
endif (WITH_SERVER)
endif (UNIX AND NOT WIN32)
foreach(_UNIT_TEST ${LIBSSH_UNIT_TESTS})