[compiler-rt] r178128 - [TSan] Run test output through FileCheck

Alexey Samsonov samsonov at google.com
Wed Mar 27 02:25:07 PDT 2013


Author: samsonov
Date: Wed Mar 27 04:25:06 2013
New Revision: 178128

URL: http://llvm.org/viewvc/llvm-project?rev=178128&view=rev
Log:
[TSan] Run test output through FileCheck

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

Modified: compiler-rt/trunk/lib/tsan/lit_tests/aligned_vs_unaligned_race.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/aligned_vs_unaligned_race.cc?rev=178128&r1=178127&r2=178128&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/aligned_vs_unaligned_race.cc (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/aligned_vs_unaligned_race.cc Wed Mar 27 04:25:06 2013
@@ -1,4 +1,4 @@
-// RUN: %clangxx_tsan -O1 %s -o %t && %t
+// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
 // Race between an aligned access and an unaligned access, which
 // touches the same memory region.
 // This is a real race which is not detected by tsan.
@@ -27,4 +27,6 @@ int main() {
   pthread_create(&t[1], NULL, Thread2, NULL);
   pthread_join(t[0], NULL);
   pthread_join(t[1], NULL);
+  printf("Pass\n");
+  // CHECK: Pass
 }





More information about the llvm-commits mailing list