summaryrefslogtreecommitdiffstats
path: root/compiler-rt
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-04-11 13:01:20 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2014-04-11 13:01:20 +0000
commit77d8793fa6357fd3e8b0a4794126b0eabcaa50bb (patch)
tree41ed950ebfa658e3713a5f6632c0e72fb0c99b1b /compiler-rt
parent652cbd7c158d121571a7a6f6ff7a318c7f2a1fbf (diff)
downloadbcm5719-llvm-77d8793fa6357fd3e8b0a4794126b0eabcaa50bb.tar.gz
bcm5719-llvm-77d8793fa6357fd3e8b0a4794126b0eabcaa50bb.zip
[tsan] Fix output tests.
llvm-svn: 206031
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/tsan/sunrpc.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler-rt/test/tsan/sunrpc.cc b/compiler-rt/test/tsan/sunrpc.cc
index 660849fb6fd..a621c5f6540 100644
--- a/compiler-rt/test/tsan/sunrpc.cc
+++ b/compiler-rt/test/tsan/sunrpc.cc
@@ -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;
}
OpenPOWER on IntegriCloud