Index: test/tsan/map32bit.cc =================================================================== --- test/tsan/map32bit.cc +++ test/tsan/map32bit.cc @@ -11,6 +11,9 @@ // XFAIL: mips64 // XFAIL: aarch64 +// MAP_32BIT doesn't exist on OS X. +// UNSUPPORTED: darwin + void *Thread(void *ptr) { *(int*)ptr = 42; barrier_wait(&barrier); Index: test/tsan/mutexset6.cc =================================================================== --- test/tsan/mutexset6.cc +++ test/tsan/mutexset6.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s #include "test.h" +// OS X doesn't have pthread spinlocks. +// UNSUPPORTED: darwin + int Global; pthread_mutex_t mtx1; pthread_spinlock_t mtx2; Index: test/tsan/thread_name2.cc =================================================================== --- test/tsan/thread_name2.cc +++ test/tsan/thread_name2.cc @@ -1,6 +1,9 @@ // RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s #include "test.h" +// OS X doesn't have pthread_setname_np(tid, name). +// UNSUPPORTED: darwin + #if defined(__FreeBSD__) #include #define pthread_setname_np pthread_set_name_np