[TSan] increase sleep time in test to ensure correct event ordering
llvm-svn: 164483
This commit is contained in:
parent
ed2a284977
commit
0659f72f7b
|
@ -1,5 +1,4 @@
|
||||||
// FIXME: Understand why this test fails if TSan is re-execed.
|
// FIXME: Understand why this test fails if TSan is re-execed.
|
||||||
// RUN: ulimit -s 8192
|
|
||||||
// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
// RUN: %clangxx_tsan -O1 %s -o %t && %t 2>&1 | FileCheck %s
|
||||||
#include <pthread.h>
|
#include <pthread.h>
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
|
@ -12,7 +11,7 @@ void *Thread(void *p) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void MySleep() {
|
void MySleep() {
|
||||||
usleep(100*1000);
|
usleep(300*1000);
|
||||||
}
|
}
|
||||||
|
|
||||||
int main() {
|
int main() {
|
||||||
|
|
Loading…
Reference in New Issue