[compiler-rt] r196097 - [asan] disable AddressSanitizer.HugeMallocTest if ASAN_AVOID_EXPENSIVE_TESTS is set
Kostya Serebryany
kcc at google.com
Mon Dec 2 05:22:27 PST 2013
Author: kcc
Date: Mon Dec 2 07:22:27 2013
New Revision: 196097
URL: http://llvm.org/viewvc/llvm-project?rev=196097&view=rev
Log:
[asan] disable AddressSanitizer.HugeMallocTest if ASAN_AVOID_EXPENSIVE_TESTS is set
Modified:
compiler-rt/trunk/lib/asan/tests/asan_test.cc
Modified: compiler-rt/trunk/lib/asan/tests/asan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_test.cc?rev=196097&r1=196096&r2=196097&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Mon Dec 2 07:22:27 2013
@@ -299,7 +299,7 @@ TEST(AddressSanitizer, LargeMallocTest)
}
TEST(AddressSanitizer, HugeMallocTest) {
- if (SANITIZER_WORDSIZE != 64) return;
+ if (SANITIZER_WORDSIZE != 64 || ASAN_AVOID_EXPENSIVE_TESTS) return;
size_t n_megs = 4100;
TestLargeMalloc(n_megs << 20);
}
More information about the llvm-commits
mailing list