aboutsummaryrefslogtreecommitdiff
path: root/test/tsan/tls_race.cc
diff options
context:
space:
mode:
Diffstat (limited to 'test/tsan/tls_race.cc')
-rw-r--r--test/tsan/tls_race.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/test/tsan/tls_race.cc b/test/tsan/tls_race.cc
index 5e8172276708..b43a514cc8aa 100644
--- a/test/tsan/tls_race.cc
+++ b/test/tsan/tls_race.cc
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s
+// RUN: %clangxx_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s --check-prefix=CHECK-%os --check-prefix=CHECK
#include "test.h"
void *Thread(void *a) {
@@ -18,4 +18,6 @@ int main() {
}
// CHECK: WARNING: ThreadSanitizer: data race
-// CHECK: Location is TLS of main thread.
+// CHECK-Linux: Location is TLS of main thread.
+// CHECK-FreeBSD: Location is TLS of main thread.
+// CHECK-Darwin: Location is heap block of size 4