diff options
| author | Julian Lettner <jlettner@apple.com> | 2019-04-04 21:25:56 +0000 |
|---|---|---|
| committer | Julian Lettner <jlettner@apple.com> | 2019-04-04 21:25:56 +0000 |
| commit | 13dace5d5d653ccc305d6547ba08efee6f673f22 (patch) | |
| tree | d4034dbe8b89b34da7a665585f9988613f95d553 /compiler-rt | |
| parent | c815210013f27cfac07d6b53b47e8ac53e86afa3 (diff) | |
| download | bcm5719-llvm-13dace5d5d653ccc305d6547ba08efee6f673f22.tar.gz bcm5719-llvm-13dace5d5d653ccc305d6547ba08efee6f673f22.zip | |
[TSan][libdispatch] Stricter checks via `--implicit-check-not`
`--implicit-check-not='ThreadSanitizer'` checks in the entire output
while `// CHECK-NOT: ThreadSanitizer` only checks after (before) the
previous (next) match.
llvm-svn: 357727
Diffstat (limited to 'compiler-rt')
7 files changed, 8 insertions, 16 deletions
diff --git a/compiler-rt/test/tsan/libdispatch/dispatch_main.c b/compiler-rt/test/tsan/libdispatch/dispatch_main.c index 43b0d08cc30..9e4a3ea42ad 100644 --- a/compiler-rt/test/tsan/libdispatch/dispatch_main.c +++ b/compiler-rt/test/tsan/libdispatch/dispatch_main.c @@ -2,7 +2,7 @@ // quits the main thread. // RUN: %clang_tsan %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <dispatch/dispatch.h> @@ -36,6 +36,5 @@ int main() { } // CHECK: Hello world +// CHECK: 123 // CHECK: Done. -// CHECK-NOT: WARNING: ThreadSanitizer -// CHECK-NOT: CHECK failed diff --git a/compiler-rt/test/tsan/libdispatch/groups-destructor.cc b/compiler-rt/test/tsan/libdispatch/groups-destructor.cc index 100f6fc7cd4..a551af63a46 100644 --- a/compiler-rt/test/tsan/libdispatch/groups-destructor.cc +++ b/compiler-rt/test/tsan/libdispatch/groups-destructor.cc @@ -1,5 +1,5 @@ // RUN: %clangxx_tsan %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <dispatch/dispatch.h> @@ -39,5 +39,4 @@ int main(int argc, const char *argv[]) { } // CHECK: Hello world. -// CHECK-NOT: WARNING: ThreadSanitizer // CHECK: Done. diff --git a/compiler-rt/test/tsan/libdispatch/groups-leave.c b/compiler-rt/test/tsan/libdispatch/groups-leave.c index 0e487870a05..f63d6e5f57f 100644 --- a/compiler-rt/test/tsan/libdispatch/groups-leave.c +++ b/compiler-rt/test/tsan/libdispatch/groups-leave.c @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <dispatch/dispatch.h> @@ -52,5 +52,4 @@ int main() { } // CHECK: Hello world. -// CHECK-NOT: WARNING: ThreadSanitizer // CHECK: Done. diff --git a/compiler-rt/test/tsan/libdispatch/groups-stress.c b/compiler-rt/test/tsan/libdispatch/groups-stress.c index 0fdaac05037..0f24ff7c954 100644 --- a/compiler-rt/test/tsan/libdispatch/groups-stress.c +++ b/compiler-rt/test/tsan/libdispatch/groups-stress.c @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <dispatch/dispatch.h> @@ -41,5 +41,3 @@ int main() { // CHECK: Hello world. // CHECK: Done. -// CHECK-NOT: WARNING: ThreadSanitizer -// CHECK-NOT: CHECK failed diff --git a/compiler-rt/test/tsan/libdispatch/once.c b/compiler-rt/test/tsan/libdispatch/once.c index 00227b88e90..d473b34269d 100644 --- a/compiler-rt/test/tsan/libdispatch/once.c +++ b/compiler-rt/test/tsan/libdispatch/once.c @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <dispatch/dispatch.h> @@ -52,4 +52,3 @@ int main() { // CHECK: Hello world. // CHECK: Done. -// CHECK-NOT: WARNING: ThreadSanitizer diff --git a/compiler-rt/test/tsan/libdispatch/semaphore-norace.c b/compiler-rt/test/tsan/libdispatch/semaphore-norace.c index ce94a3cbf25..36e03dce80a 100644 --- a/compiler-rt/test/tsan/libdispatch/semaphore-norace.c +++ b/compiler-rt/test/tsan/libdispatch/semaphore-norace.c @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <dispatch/dispatch.h> @@ -28,4 +28,3 @@ int main() { // CHECK: Hello world. // CHECK: Done. -// CHECK-NOT: WARNING: ThreadSanitizer diff --git a/compiler-rt/test/tsan/libdispatch/suspend.c b/compiler-rt/test/tsan/libdispatch/suspend.c index 5566faf0ca7..617ad917e2a 100644 --- a/compiler-rt/test/tsan/libdispatch/suspend.c +++ b/compiler-rt/test/tsan/libdispatch/suspend.c @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -// RUN: %run %t 2>&1 | FileCheck %s +// RUN: %run %t 2>&1 | FileCheck %s --implicit-check-not='ThreadSanitizer' #include <dispatch/dispatch.h> @@ -43,5 +43,4 @@ int main(int argc, const char *argv[]) { } // CHECK: Hello world. -// CHECK-NOT: WARNING: ThreadSanitizer // CHECK: Done. |

