Disable fork-detect tests under TSAN.

TSAN can't cope with the pattern of forking and threading here and
exits with an error.

Change-Id: I3673004b62a45c5e910a4597f89764682a0b8d0a
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/41224
Commit-Queue: Adam Langley <agl@google.com>
Commit-Queue: David Benjamin <davidben@google.com>
Reviewed-by: David Benjamin <davidben@google.com>
This commit is contained in:
Adam Langley
2020-05-04 15:19:06 +00:00
committed by CQ bot account: commit-bot@chromium.org
parent aa764c46eb
commit cccfb9bcf2
+4 -2
View File
@@ -14,7 +14,9 @@
#include <openssl/base.h>
#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 <errno.h>
#include <inttypes.h>
#include <stdio.h>
@@ -155,4 +157,4 @@ TEST(ForkDetect, Test) {
EXPECT_EQ(start, CRYPTO_get_fork_generation());
}
#endif // OPENSSL_LINUX
#endif // OPENSSL_LINUX && !OPENSSL_TSAN