summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2012-12-14 10:17:22 +0000
committerDmitry Vyukov <dvyukov@google.com>2012-12-14 10:17:22 +0000
commit34aef74a4da311261cf4043c2f4fec7482370178 (patch)
treee20e4a442b24a8b29cff9d76daf4ade74aca3791
parented6d54368cbdd9db44026a136bb1e3c2e29da62f (diff)
downloadbcm5719-llvm-34aef74a4da311261cf4043c2f4fec7482370178.tar.gz
bcm5719-llvm-34aef74a4da311261cf4043c2f4fec7482370178.zip
tsan: disable allocator tests in debug build
llvm-svn: 170187
-rw-r--r--compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
index e1bfe57e10b..06ad989ccec 100644
--- a/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
+++ b/compiler-rt/lib/sanitizer_common/tests/sanitizer_allocator_test.cc
@@ -20,6 +20,9 @@
#include <algorithm>
#include <vector>
+// Too slow for debug build
+#if TSAN_DEBUG==0
+
#if SANITIZER_WORDSIZE == 64
static const uptr kAllocatorSpace = 0x700000000000ULL;
static const uptr kAllocatorSize = 0x010000000000ULL; // 1T.
@@ -465,3 +468,5 @@ TEST(Allocator, ScopedBuffer) {
EXPECT_EQ('c', char_buf[i]);
}
}
+
+#endif // #if TSAN_DEBUG==0
OpenPOWER on IntegriCloud