[compiler-rt] r177715 - tsan: work around FileCheck bug with empty outputs

Dmitry Vyukov dvyukov at google.com
Fri Mar 22 01:48:34 PDT 2013


Author: dvyukov
Date: Fri Mar 22 03:48:34 2013
New Revision: 177715

URL: http://llvm.org/viewvc/llvm-project?rev=177715&view=rev
Log:
tsan: work around FileCheck bug with empty outputs


Modified:
    compiler-rt/trunk/lib/tsan/lit_tests/thread_leak4.c

Modified: compiler-rt/trunk/lib/tsan/lit_tests/thread_leak4.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/tsan/lit_tests/thread_leak4.c?rev=177715&r1=177714&r2=177715&view=diff
==============================================================================
--- compiler-rt/trunk/lib/tsan/lit_tests/thread_leak4.c (original)
+++ compiler-rt/trunk/lib/tsan/lit_tests/thread_leak4.c Fri Mar 22 03:48:34 2013
@@ -1,6 +1,7 @@
 // RUN: %clang_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
 #include <pthread.h>
 #include <unistd.h>
+#include <stdio.h>
 
 void *Thread(void *x) {
   sleep(10);
@@ -10,6 +11,7 @@ void *Thread(void *x) {
 int main() {
   pthread_t t;
   pthread_create(&t, 0, Thread, 0);
+  printf("OK\n");
   return 0;
 }
 





More information about the llvm-commits mailing list