diff options
author | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-19 12:02:02 +0000 |
---|---|---|
committer | Kuba Brecka <kuba.brecka@gmail.com> | 2015-11-19 12:02:02 +0000 |
commit | 89cae1fc1cfb096321a381123d5c38f30d04258c (patch) | |
tree | db7fb8547e0a425bd34713c2beb27f42c5b2ff0c | |
parent | 8ae38c3cbfeaf3019cea745e91e2e4b92208cd0e (diff) |
[tsan] Mark tests that need pthread barriers with "UNSUPPORTED: darwin"
Several testcases need pthread barriers (e.g. all bench_*.cc which use test/tsan/bench.h) which are not available on OS X. Let's mark them with "UNSUPPORTED: darwin".
Differential Revision: http://reviews.llvm.org/D14636
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@253558 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | test/tsan/barrier.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_acquire_only.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_acquire_release.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_local_mutex.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_mutex.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_release_only.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_rwmutex.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_single_writer.cc | 3 | ||||
-rw-r--r-- | test/tsan/bench_ten_mutexes.cc | 3 | ||||
-rw-r--r-- | test/tsan/race_on_barrier.c | 4 | ||||
-rw-r--r-- | test/tsan/race_on_barrier2.c | 4 |
11 files changed, 35 insertions, 0 deletions
diff --git a/test/tsan/barrier.cc b/test/tsan/barrier.cc index d8c2b6ffe..de2756de2 100644 --- a/test/tsan/barrier.cc +++ b/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 <stdio.h> #include <stdlib.h> #include <pthread.h> diff --git a/test/tsan/bench_acquire_only.cc b/test/tsan/bench_acquire_only.cc index 5cd6bd74e..0ed21b461 100644 --- a/test/tsan/bench_acquire_only.cc +++ b/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; diff --git a/test/tsan/bench_acquire_release.cc b/test/tsan/bench_acquire_release.cc index 9e53a7b26..3799452a1 100644 --- a/test/tsan/bench_acquire_release.cc +++ b/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; diff --git a/test/tsan/bench_local_mutex.cc b/test/tsan/bench_local_mutex.cc index 0fa1db0c8..15f83bc8b 100644 --- a/test/tsan/bench_local_mutex.cc +++ b/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; diff --git a/test/tsan/bench_mutex.cc b/test/tsan/bench_mutex.cc index 324d53fd7..58aa86a78 100644 --- a/test/tsan/bench_mutex.cc +++ b/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; diff --git a/test/tsan/bench_release_only.cc b/test/tsan/bench_release_only.cc index 0a86f73f2..7f26041af 100644 --- a/test/tsan/bench_release_only.cc +++ b/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; diff --git a/test/tsan/bench_rwmutex.cc b/test/tsan/bench_rwmutex.cc index 818ee8c82..2b3dcb012 100644 --- a/test/tsan/bench_rwmutex.cc +++ b/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; diff --git a/test/tsan/bench_single_writer.cc b/test/tsan/bench_single_writer.cc index 0d3810a03..3d2ea150b 100644 --- a/test/tsan/bench_single_writer.cc +++ b/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; diff --git a/test/tsan/bench_ten_mutexes.cc b/test/tsan/bench_ten_mutexes.cc index 876f1365e..e7fa05ea8 100644 --- a/test/tsan/bench_ten_mutexes.cc +++ b/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; diff --git a/test/tsan/race_on_barrier.c b/test/tsan/race_on_barrier.c index cf8a4cb99..66fd339eb 100644 --- a/test/tsan/race_on_barrier.c +++ b/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; diff --git a/test/tsan/race_on_barrier2.c b/test/tsan/race_on_barrier2.c index 98c028e19..49adb6231 100644 --- a/test/tsan/race_on_barrier2.c +++ b/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 <pthread.h> #include <stdio.h> #include <stddef.h> |