aboutsummaryrefslogtreecommitdiff
path: root/test/tsan/thread_name2.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/thread_name2.cc')
-rw-r--r--test/tsan/thread_name2.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/test/tsan/thread_name2.cc b/test/tsan/thread_name2.cc
index a44f4b9d3247..d7ed0f0d1952 100644
--- a/test/tsan/thread_name2.cc
+++ b/test/tsan/thread_name2.cc
@@ -1,12 +1,15 @@
// 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 <pthread_np.h>
#define pthread_setname_np pthread_set_name_np
#endif
-int Global;
+long long Global;
void *Thread1(void *x) {
barrier_wait(&barrier);