Index: test/tsan/Darwin/gcd-async-norace.mm =================================================================== --- test/tsan/Darwin/gcd-async-norace.mm +++ test/tsan/Darwin/gcd-async-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import Index: test/tsan/Darwin/gcd-async-race.mm =================================================================== --- test/tsan/Darwin/gcd-async-race.mm +++ test/tsan/Darwin/gcd-async-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 @@ -9,7 +9,7 @@ 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 @@ // 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. Index: test/tsan/Darwin/gcd-groups-norace.mm =================================================================== --- test/tsan/Darwin/gcd-groups-norace.mm +++ test/tsan/Darwin/gcd-groups-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import Index: test/tsan/Darwin/gcd-groups-stress.mm =================================================================== --- test/tsan/Darwin/gcd-groups-stress.mm +++ test/tsan/Darwin/gcd-groups-stress.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import Index: test/tsan/Darwin/gcd-once.mm =================================================================== --- test/tsan/Darwin/gcd-once.mm +++ test/tsan/Darwin/gcd-once.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import Index: test/tsan/Darwin/gcd-semaphore-norace.mm =================================================================== --- test/tsan/Darwin/gcd-semaphore-norace.mm +++ test/tsan/Darwin/gcd-semaphore-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import Index: test/tsan/Darwin/gcd-serial-queue-norace.mm =================================================================== --- test/tsan/Darwin/gcd-serial-queue-norace.mm +++ test/tsan/Darwin/gcd-serial-queue-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import Index: test/tsan/Darwin/gcd-sync-norace.mm =================================================================== --- test/tsan/Darwin/gcd-sync-norace.mm +++ test/tsan/Darwin/gcd-sync-norace.mm @@ -1,5 +1,5 @@ // RUN: %clang_tsan %s -o %t -framework Foundation -// RUN: %run %t 2>&1 +// RUN: %run %t 2>&1 | FileCheck %s #import Index: test/tsan/Darwin/gcd-sync-race.mm =================================================================== --- test/tsan/Darwin/gcd-sync-race.mm +++ test/tsan/Darwin/gcd-sync-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 @@ -9,7 +9,7 @@ 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 @@ // 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. Index: test/tsan/Darwin/objc-race.mm =================================================================== --- test/tsan/Darwin/objc-race.mm +++ 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 @@ -49,7 +49,7 @@ // 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. Index: test/tsan/Darwin/objc-simple.mm =================================================================== --- test/tsan/Darwin/objc-simple.mm +++ 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