diff options
| author | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-07 11:31:02 +0000 |
|---|---|---|
| committer | Kuba Brecka <kuba.brecka@gmail.com> | 2016-04-07 11:31:02 +0000 |
| commit | aafb41ae473576c1c06bf3d03dcb1fec15f7b711 (patch) | |
| tree | de4c0b59174d3ef5ea6e849e783c03b3e41aa30a /compiler-rt/test | |
| parent | e5462114922b4bef8c76663c68b2b3aa26036e45 (diff) | |
| download | bcm5719-llvm-aafb41ae473576c1c06bf3d03dcb1fec15f7b711.tar.gz bcm5719-llvm-aafb41ae473576c1c06bf3d03dcb1fec15f7b711.zip | |
[tsan] Fix Darwin tests (missing FileCheck's)
A little embarrassing, but we're missing the call to FileCheck in several Darwin tests. Let's fix this.
Differential Revision: http://reviews.llvm.org/D18503
llvm-svn: 265658
Diffstat (limited to 'compiler-rt/test')
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-async-norace.mm | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-async-race.mm | 6 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-groups-norace.mm | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-groups-stress.mm | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-once.mm | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-semaphore-norace.mm | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-serial-queue-norace.mm | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-sync-norace.mm | 2 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/gcd-sync-race.mm | 6 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/objc-race.mm | 4 | ||||
| -rw-r--r-- | compiler-rt/test/tsan/Darwin/objc-simple.mm | 2 |
11 files changed, 16 insertions, 16 deletions
diff --git a/compiler-rt/test/tsan/Darwin/gcd-async-norace.mm b/compiler-rt/test/tsan/Darwin/gcd-async-norace.mm index a8174f9a3b8..c7e28b4ce79 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-async-norace.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-async-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/compiler-rt/test/tsan/Darwin/gcd-async-race.mm b/compiler-rt/test/tsan/Darwin/gcd-async-race.mm index b83dc01330a..1002a56b0a1 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-async-race.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-async-race.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> @@ -9,7 +9,7 @@ long global; int main() { NSLog(@"Hello world."); - NSLog(@"addr=%p\n", &global); + print_address("addr=", 1, &global); barrier_init(&barrier, 2); global = 42; @@ -34,5 +34,5 @@ int main() { // CHECK: Hello world. // CHECK: addr=[[ADDR:0x[0-9,a-f]+]] // CHECK: WARNING: ThreadSanitizer: data race -// CHECK: Location is global 'global' at [[ADDR]] (global_race.cc.exe+0x{{[0-9,a-f]+}}) +// CHECK: Location is global 'global' {{(of size 8 )?}}at [[ADDR]] (gcd-async-race.mm.tmp+0x{{[0-9,a-f]+}}) // CHECK: Done. diff --git a/compiler-rt/test/tsan/Darwin/gcd-groups-norace.mm b/compiler-rt/test/tsan/Darwin/gcd-groups-norace.mm index a73881dd772..64ec386ca40 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-groups-norace.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-groups-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/compiler-rt/test/tsan/Darwin/gcd-groups-stress.mm b/compiler-rt/test/tsan/Darwin/gcd-groups-stress.mm index 96a20f4e011..457d9afd9c9 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-groups-stress.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-groups-stress.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/compiler-rt/test/tsan/Darwin/gcd-once.mm b/compiler-rt/test/tsan/Darwin/gcd-once.mm index 4546761ac10..3e4a5335607 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-once.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-once.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/compiler-rt/test/tsan/Darwin/gcd-semaphore-norace.mm b/compiler-rt/test/tsan/Darwin/gcd-semaphore-norace.mm index c7280b26f77..20bc5724d16 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-semaphore-norace.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-semaphore-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/compiler-rt/test/tsan/Darwin/gcd-serial-queue-norace.mm b/compiler-rt/test/tsan/Darwin/gcd-serial-queue-norace.mm index a6b47abd7a6..95efbb764c5 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-serial-queue-norace.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-serial-queue-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/compiler-rt/test/tsan/Darwin/gcd-sync-norace.mm b/compiler-rt/test/tsan/Darwin/gcd-sync-norace.mm index b820e0a943c..c683524f73b 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-sync-norace.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-sync-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> diff --git a/compiler-rt/test/tsan/Darwin/gcd-sync-race.mm b/compiler-rt/test/tsan/Darwin/gcd-sync-race.mm index 6fc568dc315..650faa4e082 100644 --- a/compiler-rt/test/tsan/Darwin/gcd-sync-race.mm +++ b/compiler-rt/test/tsan/Darwin/gcd-sync-race.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 +// RUN: %env_tsan_opts=ignore_interceptors_accesses=1 %deflake %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> @@ -9,7 +9,7 @@ long global; int main() { NSLog(@"Hello world."); - NSLog(@"addr=%p\n", &global); + print_address("addr=", 1, &global); barrier_init(&barrier, 2); dispatch_queue_t q1 = dispatch_queue_create("my.queue1", DISPATCH_QUEUE_CONCURRENT); @@ -40,5 +40,5 @@ int main() { // CHECK: Hello world. // CHECK: addr=[[ADDR:0x[0-9,a-f]+]] // CHECK: WARNING: ThreadSanitizer: data race -// CHECK: Location is global 'global' at [[ADDR]] (global_race.cc.exe+0x{{[0-9,a-f]+}}) +// CHECK: Location is global 'global' {{(of size 8 )?}}at [[ADDR]] (gcd-sync-race.mm.tmp+0x{{[0-9,a-f]+}}) // CHECK: Done. diff --git a/compiler-rt/test/tsan/Darwin/objc-race.mm b/compiler-rt/test/tsan/Darwin/objc-race.mm index bd93d2f1c2e..82fcc4ef178 100644 --- a/compiler-rt/test/tsan/Darwin/objc-race.mm +++ b/compiler-rt/test/tsan/Darwin/objc-race.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %deflake %run %t 2>&1 +// RUN: %deflake %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> @@ -49,7 +49,7 @@ int main() { // CHECK: WARNING: ThreadSanitizer: data race // CHECK: Write of size 8 // CHECK: #0 -[MyClass method:] -// CHECK: Write of size 8 +// CHECK: Previous write of size 8 // CHECK: #0 -[MyClass method:] // CHECK: Location is heap block // CHECK: Done. diff --git a/compiler-rt/test/tsan/Darwin/objc-simple.mm b/compiler-rt/test/tsan/Darwin/objc-simple.mm index a4bf1f1beaa..b62d0eb8702 100644 --- a/compiler-rt/test/tsan/Darwin/objc-simple.mm +++ b/compiler-rt/test/tsan/Darwin/objc-simple.mm @@ -1,7 +1,7 @@ // Test that a simple Obj-C program runs and exits without any warnings. // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import <Foundation/Foundation.h> |

