Index: compiler-rt/trunk/test/tsan/barrier.cc =================================================================== --- compiler-rt/trunk/test/tsan/barrier.cc +++ compiler-rt/trunk/test/tsan/barrier.cc @@ -2,6 +2,9 @@ // CHECK-NOT: ThreadSanitizer: data race // CHECK: DONE +// pthread barriers are not available on OS X +// UNSUPPORTED: darwin + #include #include #include Index: compiler-rt/trunk/test/tsan/bench_acquire_only.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_acquire_only.cc +++ compiler-rt/trunk/test/tsan/bench_acquire_only.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" int x; Index: compiler-rt/trunk/test/tsan/bench_acquire_release.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_acquire_release.cc +++ compiler-rt/trunk/test/tsan/bench_acquire_release.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" int x; Index: compiler-rt/trunk/test/tsan/bench_local_mutex.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_local_mutex.cc +++ compiler-rt/trunk/test/tsan/bench_local_mutex.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" pthread_mutex_t *mtx; Index: compiler-rt/trunk/test/tsan/bench_mutex.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_mutex.cc +++ compiler-rt/trunk/test/tsan/bench_mutex.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" pthread_mutex_t mtx; Index: compiler-rt/trunk/test/tsan/bench_release_only.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_release_only.cc +++ compiler-rt/trunk/test/tsan/bench_release_only.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" int *x; Index: compiler-rt/trunk/test/tsan/bench_rwmutex.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_rwmutex.cc +++ compiler-rt/trunk/test/tsan/bench_rwmutex.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" pthread_rwlock_t mtx; Index: compiler-rt/trunk/test/tsan/bench_single_writer.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_single_writer.cc +++ compiler-rt/trunk/test/tsan/bench_single_writer.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" int x; Index: compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc =================================================================== --- compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc +++ compiler-rt/trunk/test/tsan/bench_ten_mutexes.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan %s -o %t // RUN: %run %t 2>&1 | FileCheck %s +// bench.h needs pthread barriers which are not available on OS X +// UNSUPPORTED: darwin + #include "bench.h" const int kMutex = 10; Index: compiler-rt/trunk/test/tsan/race_on_barrier.c =================================================================== --- compiler-rt/trunk/test/tsan/race_on_barrier.c +++ compiler-rt/trunk/test/tsan/race_on_barrier.c @@ -1,4 +1,8 @@ // RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s + +// pthread barriers are not available on OS X +// UNSUPPORTED: darwin + #include "test.h" pthread_barrier_t B; Index: compiler-rt/trunk/test/tsan/race_on_barrier2.c =================================================================== --- compiler-rt/trunk/test/tsan/race_on_barrier2.c +++ compiler-rt/trunk/test/tsan/race_on_barrier2.c @@ -1,4 +1,8 @@ // RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s + +// pthread barriers are not available on OS X +// UNSUPPORTED: darwin + #include #include #include