[compiler-rt] r195331 - [tsan] use FileCheck in race_on_speculative_load.cc

Kostya Serebryany kcc at google.com
Thu Nov 21 01:09:48 PST 2013


Author: kcc
Date: Thu Nov 21 03:09:47 2013
New Revision: 195331

URL: http://llvm.org/viewvc/llvm-project?rev=195331&view=rev
Log:
[tsan] use FileCheck in race_on_speculative_load.cc

Modified:
    compiler-rt/trunk/lib/tsan/lit_tests/race_on_speculative_load.cc

Modified: compiler-rt/trunk/lib/tsan/lit_tests/race_on_speculative_load.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/race_on_speculative_load.cc?rev=195331&r1=195330&r2=195331&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/race_on_speculative_load.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/race_on_speculative_load.cc Thu Nov 21 03:09:47 2013
@@ -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
 }





More information about the llvm-commits mailing list