[compiler-rt] r353617 - [tsan] Debug failing test on PPC bot
Vitaly Buka via llvm-commits
llvm-commits at lists.llvm.org
Sat Feb 9 08:28:41 PST 2019
Author: vitalybuka
Date: Sat Feb 9 08:28:41 2019
New Revision: 353617
URL: http://llvm.org/viewvc/llvm-project?rev=353617&view=rev
Log:
[tsan] Debug failing test on PPC bot
Modified:
compiler-rt/trunk/test/tsan/thread_exit.c
Modified: compiler-rt/trunk/test/tsan/thread_exit.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/thread_exit.c?rev=353617&r1=353616&r2=353617&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/thread_exit.c (original)
+++ compiler-rt/trunk/test/tsan/thread_exit.c Sat Feb 9 08:28:41 2019
@@ -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");
More information about the llvm-commits
mailing list