From: Dmitry Vyukov Date: Mon, 10 Dec 2012 09:16:17 +0000 (+0000) Subject: tsan: exclude flaky test X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1046031e1a4e981d9dda51f0ab05f1020988ed89;p=platform%2Fupstream%2Fllvm.git tsan: exclude flaky test llvm-svn: 169729 --- diff --git a/compiler-rt/lib/tsan/tests/rtl/tsan_string.cc b/compiler-rt/lib/tsan/tests/rtl/tsan_string.cc index 75adc6c..c402f7c 100644 --- a/compiler-rt/lib/tsan/tests/rtl/tsan_string.cc +++ b/compiler-rt/lib/tsan/tests/rtl/tsan_string.cc @@ -46,6 +46,9 @@ TEST(ThreadSanitizer, MemcpyRace1) { t2.Memcpy(data, data2, 10, true); } +// The test fails with TSAN_SHADOW_COUNT=2, +// because the old racy access is evicted. +#if defined(TSAN_SHADOW_COUNT) && TSAN_SHADOW_COUNT >= 4 TEST(ThreadSanitizer, MemcpyRace2) { char *data = new char[10]; char *data1 = new char[10]; @@ -54,6 +57,7 @@ TEST(ThreadSanitizer, MemcpyRace2) { t1.Memcpy(data+5, data1, 1); t2.Memcpy(data+3, data2, 4, true); } +#endif TEST(ThreadSanitizer, MemcpyRace3) { char *data = new char[10];