diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2013-03-22 08:48:34 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2013-03-22 08:48:34 +0000 |
commit | 1471220c705acbdd9ba0dc624ad364299658982a (patch) | |
tree | b94920841121d625725059b26b10e7ca0e59263c /lib | |
parent | 2ecccf8aca0f3f67d43e6395699aab0bb19ee277 (diff) | |
download | compiler-rt-1471220c705acbdd9ba0dc624ad364299658982a.tar.gz compiler-rt-1471220c705acbdd9ba0dc624ad364299658982a.tar.bz2 compiler-rt-1471220c705acbdd9ba0dc624ad364299658982a.tar.xz |
tsan: work around FileCheck bug with empty outputs
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@177715 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r-- | lib/tsan/lit_tests/thread_leak4.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/tsan/lit_tests/thread_leak4.c b/lib/tsan/lit_tests/thread_leak4.c index 3909c0a8..f9fad036 100644 --- a/lib/tsan/lit_tests/thread_leak4.c +++ b/lib/tsan/lit_tests/thread_leak4.c @@ -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; } |