From 233f401c2bf247d9764c3ca641513dafb623e00c Mon Sep 17 00:00:00 2001 From: Dmitry Vyukov Date: Fri, 30 May 2014 14:08:51 +0000 Subject: tsan: make positive tests more robust Add a script that is used to deflake inherently flaky tsan tests. It is invoked from lit tests as: %deflake %run %t The script runs the target program up to 10 times, until it produces a tsan warning. llvm-svn: 209898 --- compiler-rt/test/tsan/tiny_race.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler-rt/test/tsan/tiny_race.c') diff --git a/compiler-rt/test/tsan/tiny_race.c b/compiler-rt/test/tsan/tiny_race.c index 9d842248090..c10eab15c5a 100644 --- a/compiler-rt/test/tsan/tiny_race.c +++ b/compiler-rt/test/tsan/tiny_race.c @@ -1,4 +1,4 @@ -// RUN: %clang_tsan -O1 %s -o %t && not %run %t 2>&1 | FileCheck %s +// RUN: %clang_tsan -O1 %s -o %t && %deflake %run %t | FileCheck %s #include #include -- cgit v1.2.3