diff --git a/crypto/fipsmodule/rand/fork_detect_test.cc b/crypto/fipsmodule/rand/fork_detect_test.cc index 12eed4d9f..ab4851276 100644 --- a/crypto/fipsmodule/rand/fork_detect_test.cc +++ b/crypto/fipsmodule/rand/fork_detect_test.cc @@ -14,7 +14,9 @@ #include -#if defined(OPENSSL_LINUX) +// TSAN cannot cope with this test and complains that "starting new threads +// after multi-threaded fork is not supported". +#if defined(OPENSSL_LINUX) && !defined(OPENSSL_TSAN) #include #include #include @@ -155,4 +157,4 @@ TEST(ForkDetect, Test) { EXPECT_EQ(start, CRYPTO_get_fork_generation()); } -#endif // OPENSSL_LINUX +#endif // OPENSSL_LINUX && !OPENSSL_TSAN