diff --git a/compiler-rt/test/tsan/mmap_stress.cpp b/compiler-rt/test/tsan/mmap_stress.cpp --- a/compiler-rt/test/tsan/mmap_stress.cpp +++ b/compiler-rt/test/tsan/mmap_stress.cpp @@ -1,4 +1,9 @@ // RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s +// This test is flaky on several builders: +// https://groups.google.com/d/msg/llvm-dev/KUFPdLhBN3Q/L75rwW9xBgAJ +// The cause is unknown (lit hides test output on failures). +// Let's try to re-enable it at least in one configutaion. +// REQUIRES: linux, x86_64-target-arch #include "test.h" #include #include @@ -47,10 +52,6 @@ } int main() { - // This test is flaky on several builders: - // https://groups.google.com/d/msg/llvm-dev/KUFPdLhBN3Q/L75rwW9xBgAJ - // The cause is unknown (lit hides test output on failures). -#if 0 pthread_t th[4]; for (int i = 0; i < 4; i++) { if (pthread_create(&th[i], 0, Worker, 0)) @@ -60,7 +61,6 @@ if (pthread_join(th[i], 0)) exit(printf("pthread_join failed: %d\n", errno)); } -#endif fprintf(stderr, "DONE\n"); }