tsan: deflake flaky test

llvm-svn: 200833
This commit is contained in:
Dmitry Vyukov 2014-02-05 12:01:34 +00:00
parent 7799eb123b
commit a54308fc6d
1 changed files with 2 additions and 0 deletions

View File

@ -2,6 +2,7 @@
#include <pthread.h>
#include <stdio.h>
#include <stddef.h>
#include <unistd.h>
int GlobalData[10];
int x;
@ -13,6 +14,7 @@ namespace XXX {
}
void *Thread(void *a) {
sleep(1);
GlobalData[2] = 42;
x = 1;
XXX::YYY::ZZZ[0] = 1;