summaryrefslogtreecommitdiff
path: root/test/tsan
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2019-02-09 16:28:41 +0000
committerVitaly Buka <vitalybuka@google.com>2019-02-09 16:28:41 +0000
commit6e3256887f14fd4b946d37318ddaa37c799dcd17 (patch)
treeab36a07b843522fc4d9984ac1b2dd2592d34896e /test/tsan
parent5174d075197122b6e17dbfa78b0199d970ad548c (diff)
downloadcompiler-rt-6e3256887f14fd4b946d37318ddaa37c799dcd17.tar.gz
[tsan] Debug failing test on PPC bot
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@353617 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/tsan')
-rw-r--r--test/tsan/thread_exit.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/test/tsan/thread_exit.c b/test/tsan/thread_exit.c
index 214b022b6..097ae9aed 100644
--- a/test/tsan/thread_exit.c
+++ b/test/tsan/thread_exit.c
@@ -1,17 +1,21 @@
-// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1 | FileCheck %s
+// RUN: %clang_tsan -O1 %s -o %t && %run %t 2>&1
+// | FileCheck %s
#include "test.h"
int var;
void *Thread(void *x) {
+ fprintf(stderr, "Thread\n");
pthread_exit(&var);
return 0;
}
int main() {
+ fprintf(stderr, "MAIN\n");
pthread_t t;
pthread_create(&t, 0, Thread, 0);
void *retval = 0;
+ fprintf(stderr, "JOIN\n");
pthread_join(t, &retval);
if (retval != &var) {
fprintf(stderr, "Unexpected return value\n");