Index: test/tsan/bench_acquire_only.cc =================================================================== --- test/tsan/bench_acquire_only.cc +++ 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: test/tsan/bench_acquire_release.cc =================================================================== --- test/tsan/bench_acquire_release.cc +++ 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: test/tsan/bench_local_mutex.cc =================================================================== --- test/tsan/bench_local_mutex.cc +++ 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: test/tsan/bench_mutex.cc =================================================================== --- test/tsan/bench_mutex.cc +++ 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: test/tsan/bench_release_only.cc =================================================================== --- test/tsan/bench_release_only.cc +++ 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: test/tsan/bench_rwmutex.cc =================================================================== --- test/tsan/bench_rwmutex.cc +++ 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: test/tsan/bench_single_writer.cc =================================================================== --- test/tsan/bench_single_writer.cc +++ 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: test/tsan/bench_ten_mutexes.cc =================================================================== --- test/tsan/bench_ten_mutexes.cc +++ 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: test/tsan/race_on_barrier.c =================================================================== --- test/tsan/race_on_barrier.c +++ 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: test/tsan/race_on_barrier2.c =================================================================== --- test/tsan/race_on_barrier2.c +++ 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