Commit d586f9f8 authored by Dan Melnic's avatar Dan Melnic Committed by Facebook GitHub Bot

Skip deadlocking fork tests in TSAN mode

Summary: Skip deadlocking fork tests in TSAN mode

Differential Revision: D23933183

fbshipit-source-id: a5fe2da954676f6ced2f00dea280e10ac88d99cd
parent aeea7370
......@@ -625,6 +625,8 @@ TEST(AsyncFileWriter, discard) {
*/
TEST(AsyncFileWriter, fork) {
#if FOLLY_HAVE_PTHREAD_ATFORK
SKIP_IF(folly::kIsSanitizeThread) << "Not supported for TSAN";
TemporaryFile tmpFile{"logging_test"};
// The number of messages to send before the fork and from each process
......@@ -727,6 +729,8 @@ TEST(AsyncFileWriter, fork) {
*/
TEST(AsyncFileWriter, crazyForks) {
#if FOLLY_HAVE_PTHREAD_ATFORK
SKIP_IF(folly::kIsSanitizeThread) << "Not supported for TSAN";
constexpr size_t numAsyncWriterThreads = 10;
constexpr size_t numForkThreads = 5;
constexpr size_t numForkIterations = 20;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment