From: Andreas Schneider Date: Tue, 27 Jun 2023 10:01:46 +0000 (+0200) Subject: tests: Do not build test_swrap_unit with LFS support X-Git-Tag: socket_wrapper-1.4.2~7 X-Git-Url: http://git.samba.org/?p=socket_wrapper.git;a=commitdiff_plain;h=70ecbaaac38dd47d1b3343ae828a3a7b9ab980c2 tests: Do not build test_swrap_unit with LFS support Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 17d8d3c..afd9092 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -71,7 +71,6 @@ set(SWRAP_TESTS test_echo_udp_sendto_recvfrom test_echo_udp_send_recv test_echo_udp_sendmsg_recvmsg - test_swrap_unit test_max_sockets test_public_functions test_close_failure @@ -167,6 +166,14 @@ if (HELGRIND_TESTING) endif() endif() +# test_swrap_unit (don't use LFS) +add_cmocka_test(test_swrap_unit + SOURCES test_swrap_unit.c + COMPILE_OPTIONS ${DEFAULT_C_COMPILE_FLAGS} -D_GNU_SOURCE + LINK_LIBRARIES ${TORTURE_LIBRARY} socket_wrapper_noop + LINK_OPTIONS ${DEFAULT_LINK_FLAGS}) +add_cmocka_test_environment(test_swrap_unit) + # test_fork_pthread add_library(thread_deadlock SHARED thread_deadlock.c) target_link_libraries(thread_deadlock ${CMAKE_THREAD_LIBS_INIT})