From e31dd3473eb4dd73e4f23ce682412064f83ec3d8 Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Wed, 26 Mar 2014 15:51:11 +0000 Subject: [PATCH] tsan: deflake test llvm-svn: 204824 --- compiler-rt/test/tsan/halt_on_error.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/compiler-rt/test/tsan/halt_on_error.cc b/compiler-rt/test/tsan/halt_on_error.cc index fddaffff29aa..c99543ad6258 100644 --- a/compiler-rt/test/tsan/halt_on_error.cc +++ b/compiler-rt/test/tsan/halt_on_error.cc @@ -1,10 +1,12 @@ // RUN: %clang_tsan -O1 %s -o %t && TSAN_OPTIONS="$TSAN_OPTIONS halt_on_error=1" not %t 2>&1 | FileCheck %s #include #include +#include int X; void *Thread(void *x) { + sleep(1); X = 42; return 0; }