From 454abc0093a52bb2a772be8aa21f6d43d0225d33 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Thu, 20 Mar 2014 13:27:11 +0000 Subject: [PATCH] tsan: deflake test llvm-svn: 204340 --- compiler-rt/test/tsan/simple_race.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/test/tsan/simple_race.c b/compiler-rt/test/tsan/simple_race.c index 80a83e01a294..c3b1262ec161 100644 --- a/compiler-rt/test/tsan/simple_race.c +++ b/compiler-rt/test/tsan/simple_race.c @@ -1,10 +1,12 @@ // RUN: %clang_tsan -O1 %s -o %t && not %t 2>&1 | FileCheck %s #include #include +#include int Global; void *Thread1(void *x) { + sleep(1); Global = 42; return NULL; }