[compiler-rt] r206031 - [tsan] Fix output tests.

Evgeniy Stepanov eugeni.stepanov at gmail.com
Fri Apr 11 06:01:21 PDT 2014


Author: eugenis
Date: Fri Apr 11 08:01:20 2014
New Revision: 206031

URL: http://llvm.org/viewvc/llvm-project?rev=206031&view=rev
Log:
[tsan] Fix output tests.

Modified:
    compiler-rt/trunk/test/tsan/sunrpc.cc

Modified: compiler-rt/trunk/test/tsan/sunrpc.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/sunrpc.cc?rev=206031&r1=206030&r2=206031&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/sunrpc.cc (original)
+++ compiler-rt/trunk/test/tsan/sunrpc.cc Fri Apr 11 08:01:20 2014
@@ -1,7 +1,8 @@
-// RUN: %clang_tsan -O1 %s -o %t && %t
+// RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
 
 #include <pthread.h>
 #include <rpc/xdr.h>
+#include <stdio.h>
 
 void *thr(void *p) {
   XDR xdrs;
@@ -17,5 +18,7 @@ int main(int argc, char *argv[]) {
   pthread_create(&th[1], 0, thr, 0);
   pthread_join(th[0], 0);
   pthread_join(th[1], 0);
+  printf("DONE\n");
+  // CHECK: DONE
   return 0;
 }





More information about the llvm-commits mailing list