mirror of
https://git.libssh.org/projects/libssh.git
synced 2026-02-10 10:26:47 +09:00
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:
committed by
Andreas Schneider
parent
9e03bf9f1e
commit
6623856e08
@@ -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})
|
||||
|
||||
Reference in New Issue
Block a user