[compiler-rt] r209290 - tsan: deflake test
Dmitry Vyukov
dvyukov at google.com
Wed May 21 05:02:08 PDT 2014
Author: dvyukov
Date: Wed May 21 07:02:08 2014
New Revision: 209290
URL: http://llvm.org/viewvc/llvm-project?rev=209290&view=rev
Log:
tsan: deflake test
Modified:
compiler-rt/trunk/test/tsan/pthread_atfork_deadlock.c
Modified: compiler-rt/trunk/test/tsan/pthread_atfork_deadlock.c
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/tsan/pthread_atfork_deadlock.c?rev=209290&r1=209289&r2=209290&view=diff
==============================================================================
--- compiler-rt/trunk/test/tsan/pthread_atfork_deadlock.c (original)
+++ compiler-rt/trunk/test/tsan/pthread_atfork_deadlock.c Wed May 21 07:02:08 2014
@@ -6,10 +6,12 @@
// in a deadlock.
#include <pthread.h>
#include <stdio.h>
+#include <unistd.h>
int glob = 0;
void *worker(void *unused) {
+ sleep(1);
glob++;
return NULL;
}
More information about the llvm-commits
mailing list