forked from OSchip/llvm-project
[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
This commit is contained in:
parent
c815210013
commit
13dace5d5d
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue