tests: Disable failing tests as on FreeBSD
authorAndreas Schneider <asn@samba.org>
Tue, 30 Oct 2018 12:00:51 +0000 (13:00 +0100)
committerAndreas Schneider <asn@samba.org>
Tue, 6 Nov 2018 14:00:41 +0000 (15:00 +0100)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
tests/CMakeLists.txt

index b43d03c2203f779b036fac3f1de90faa781734eb..2f76c6b563479ac0bcd1ce77d513f10417f04d87 100644 (file)
@@ -102,6 +102,18 @@ foreach(_SWRAP_TEST ${SWRAP_TESTS})
     add_cmocka_test_environment(${_SWRAP_TEST})
 endforeach()
 
+# These test will fail on because there is a threading race condition in
+# FreeBSD.
+# See https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=231848
+if (FREEBSD)
+    set_tests_properties(test_thread_echo_tcp_connect
+                         PROPERTIES DISABLED TRUE)
+    set_tests_properties(test_thread_echo_tcp_write_read
+                         PROPERTIES DISABLED TRUE)
+    set_tests_properties(test_thread_echo_tcp_sendmsg_recvmsg
+                         PROPERTIES DISABLED TRUE)
+endif()
+
 if (HELGRIND_TESTING)
     find_program(VALGRIND_EXECUTABLE valgrind)
     if (VALGRIND_EXECUTABLE)