diff options
author | Dmitry Vyukov <dvyukov@google.com> | 2012-12-10 09:16:17 +0000 |
---|---|---|
committer | Dmitry Vyukov <dvyukov@google.com> | 2012-12-10 09:16:17 +0000 |
commit | 1046031e1a4e981d9dda51f0ab05f1020988ed89 (patch) | |
tree | 3479b26db198da5ab3e55a44232f0c549ab1b730 /compiler-rt/lib/tsan/tests/rtl | |
parent | e41e7b7901f73ad5768b68ac8f5f9f03c77dd31b (diff) | |
download | bcm5719-llvm-1046031e1a4e981d9dda51f0ab05f1020988ed89.tar.gz bcm5719-llvm-1046031e1a4e981d9dda51f0ab05f1020988ed89.zip |
tsan: exclude flaky test
llvm-svn: 169729
Diffstat (limited to 'compiler-rt/lib/tsan/tests/rtl')
-rw-r--r-- | compiler-rt/lib/tsan/tests/rtl/tsan_string.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/tsan/tests/rtl/tsan_string.cc b/compiler-rt/lib/tsan/tests/rtl/tsan_string.cc index 75adc6c85ee..c402f7cbd67 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]; |