From 66a5bef7f9aac4d70124bc8efec72dcd434c660a Mon Sep 17 00:00:00 2001 From: Anoop C S Date: Thu, 23 Jul 2020 15:59:29 +0530 Subject: tests: Add test for socket_wrapper fd-passing support Signed-off-by: Anoop C S Reviewed-by: Stefan Metzmacher Reviewed-by: Andreas Schneider --- tests/CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/CMakeLists.txt') diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index 72cda71..fce69e4 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -61,7 +61,7 @@ set(SWRAP_TESTS ${SWRAP_THREADED_TESTS}) if (HAVE_STRUCT_MSGHDR_MSG_CONTROL) - set(SWRAP_TESTS ${SWRAP_TESTS} test_sendmsg_recvmsg_fd) + set(SWRAP_TESTS ${SWRAP_TESTS} test_sendmsg_recvmsg_fd test_echo_tcp_sendmsg_recvmsg_fd) endif (HAVE_STRUCT_MSGHDR_MSG_CONTROL) function(ADD_CMOCKA_TEST_ENVIRONMENT _TEST_NAME) @@ -116,6 +116,10 @@ foreach(_SWRAP_TEST ${SWRAP_TESTS}) add_cmocka_test_environment(${_SWRAP_TEST}) endforeach() +if (HAVE_STRUCT_MSGHDR_MSG_CONTROL) + set_tests_properties(test_echo_tcp_sendmsg_recvmsg_fd PROPERTIES WILL_FAIL TRUE) +endif (HAVE_STRUCT_MSGHDR_MSG_CONTROL) + if (HELGRIND_TESTING) find_program(VALGRIND_EXECUTABLE valgrind) if (VALGRIND_EXECUTABLE) -- cgit