tsan: deflake more tests

llvm-svn: 195916
This commit is contained in:
Dmitry Vyukov 2013-11-28 10:12:16 +00:00
parent a3365ac962
commit 25ecfcf00c
2 changed files with 3 additions and 0 deletions

View File

@ -1,8 +1,10 @@
// RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s // RUN: %clangxx_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s
#include <pthread.h> #include <pthread.h>
#include <stddef.h> #include <stddef.h>
#include <unistd.h>
void *Thread(void *a) { void *Thread(void *a) {
sleep(1);
*(int*)a = 43; *(int*)a = 43;
return 0; return 0;
} }

View File

@ -4,6 +4,7 @@
#include <unistd.h> #include <unistd.h>
void *Thread2(void *a) { void *Thread2(void *a) {
sleep(1);
*(int*)a = 43; *(int*)a = 43;
return 0; return 0;
} }