projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e41e7b7
)
tsan: exclude flaky test
author
Dmitry Vyukov
<dvyukov@google.com>
Mon, 10 Dec 2012 09:16:17 +0000
(09:16 +0000)
committer
Dmitry Vyukov
<dvyukov@google.com>
Mon, 10 Dec 2012 09:16:17 +0000
(09:16 +0000)
llvm-svn: 169729
compiler-rt/lib/tsan/tests/rtl/tsan_string.cc
patch
|
blob
|
history
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
(file)
--- 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];