diff options
| author | Kostya Serebryany <kcc@google.com> | 2013-11-21 09:09:47 +0000 |
|---|---|---|
| committer | Kostya Serebryany <kcc@google.com> | 2013-11-21 09:09:47 +0000 |
| commit | 53c51a167573551f200de11ad682d5dd1c3dd914 (patch) | |
| tree | 48a8bb7c3c6f226b8262352e3e8df30ccd05536c /compiler-rt/lib | |
| parent | 9ac2fc85d2c57acef16597e1d680ea8a23af3f30 (diff) | |
| download | bcm5719-llvm-53c51a167573551f200de11ad682d5dd1c3dd914.tar.gz bcm5719-llvm-53c51a167573551f200de11ad682d5dd1c3dd914.zip | |
[tsan] use FileCheck in race_on_speculative_load.cc
llvm-svn: 195331
Diffstat (limited to 'compiler-rt/lib')
| -rw-r--r-- | compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc b/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc index 0c7dbb568ab..31f0e4f2a31 100644 --- a/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc +++ b/compiler-rt/lib/tsan/lit_tests/race_on_speculative_load.cc @@ -1,8 +1,9 @@ -// RUN: %clangxx_tsan -O1 %s -o %t && %t +// RUN: %clangxx_tsan -O1 %s -o %t && %t | FileCheck %s // Regtest for https://code.google.com/p/thread-sanitizer/issues/detail?id=40 // This is a correct program and tsan should not report a race. #include <pthread.h> #include <unistd.h> +#include <stdio.h> int g; __attribute__((noinline)) int foo(int cond) { @@ -21,4 +22,6 @@ int main() { pthread_create(&t, 0, Thread1, 0); g = 1; pthread_join(t, 0); + printf("PASS\n"); + // CHECK: PASS } |

