diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-07-04 15:48:05 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-07-04 15:48:05 +0000 |
commit | b4ea34f5d7c1b368cd7067459d57b171e7175a26 (patch) | |
tree | 5cc85a55adf9899817dfc4420060884107e10d50 /compiler-rt/lib/tsan/output_tests/simple_stack.c | |
parent | 77769caaef4e5c937f050a6feec9225044921e4d (diff) | |
download | bcm5719-llvm-b4ea34f5d7c1b368cd7067459d57b171e7175a26.tar.gz bcm5719-llvm-b4ea34f5d7c1b368cd7067459d57b171e7175a26.zip |
[TSan] Improve output tests: allow reports to contain file:line:column instead of file:line
llvm-svn: 159714
Diffstat (limited to 'compiler-rt/lib/tsan/output_tests/simple_stack.c')
-rw-r--r-- | compiler-rt/lib/tsan/output_tests/simple_stack.c | 21 |
1 files changed, 10 insertions, 11 deletions
diff --git a/compiler-rt/lib/tsan/output_tests/simple_stack.c b/compiler-rt/lib/tsan/output_tests/simple_stack.c index ade99da7a63..2e94f23f3c4 100644 --- a/compiler-rt/lib/tsan/output_tests/simple_stack.c +++ b/compiler-rt/lib/tsan/output_tests/simple_stack.c @@ -48,19 +48,18 @@ int main() { // CHECK: WARNING: ThreadSanitizer: data race // CHECK-NEXT: Write of size 4 at {{.*}} by thread 1: -// CHECK-NEXT: #0 foo1 {{.*}}simple_stack.c:8 ({{.*}}) -// CHECK-NEXT: #1 bar1 {{.*}}simple_stack.c:13 ({{.*}}) -// CHECK-NEXT: #2 Thread1 {{.*}}simple_stack.c:27 ({{.*}}) +// CHECK-NEXT: #0 foo1 {{.*}}simple_stack.c:8{{(:3)?}} ({{.*}}) +// CHECK-NEXT: #1 bar1 {{.*}}simple_stack.c:13{{(:3)?}} ({{.*}}) +// CHECK-NEXT: #2 Thread1 {{.*}}simple_stack.c:27{{(:3)?}} ({{.*}}) // CHECK-NEXT: Previous read of size 4 at {{.*}} by thread 2: -// CHECK-NEXT: #0 foo2 {{.*}}simple_stack.c:17 ({{.*}}) -// CHECK-NEXT: #1 bar2 {{.*}}simple_stack.c:22 ({{.*}}) -// CHECK-NEXT: #2 Thread2 {{.*}}simple_stack.c:32 ({{.*}}) +// CHECK-NEXT: #0 foo2 {{.*}}simple_stack.c:17{{(:26)?}} ({{.*}}) +// CHECK-NEXT: #1 bar2 {{.*}}simple_stack.c:22{{(:3)?}} ({{.*}}) +// CHECK-NEXT: #2 Thread2 {{.*}}simple_stack.c:32{{(:3)?}} ({{.*}}) // CHECK-NEXT: Thread 1 (running) created at: // CHECK-NEXT: #0 pthread_create {{.*}} ({{.*}}) -// CHECK-NEXT: #1 StartThread {{.*}}simple_stack.c:37 ({{.*}}) -// CHECK-NEXT: #2 main {{.*}}simple_stack.c:42 ({{.*}}) +// CHECK-NEXT: #1 StartThread {{.*}}simple_stack.c:37{{(:3)?}} ({{.*}}) +// CHECK-NEXT: #2 main {{.*}}simple_stack.c:42{{(:3)?}} ({{.*}}) // CHECK-NEXT: Thread 2 ({{.*}}) created at: // CHECK-NEXT: #0 pthread_create {{.*}} ({{.*}}) -// CHECK-NEXT: #1 StartThread {{.*}}simple_stack.c:37 ({{.*}}) -// CHECK-NEXT: #2 main {{.*}}simple_stack.c:43 ({{.*}}) - +// CHECK-NEXT: #1 StartThread {{.*}}simple_stack.c:37{{(:3)?}} ({{.*}}) +// CHECK-NEXT: #2 main {{.*}}simple_stack.c:43{{(:3)?}} ({{.*}}) |