From 5236c7993276203ca0c16214bcbc70186dd9821c Mon Sep 17 00:00:00 2001 From: Kostya Serebryany Date: Mon, 2 Dec 2013 13:22:27 +0000 Subject: [PATCH] [asan] disable AddressSanitizer.HugeMallocTest if ASAN_AVOID_EXPENSIVE_TESTS is set llvm-svn: 196097 --- compiler-rt/lib/asan/tests/asan_test.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc index 38a550294829..9ab4cb0d8a4c 100644 --- a/compiler-rt/lib/asan/tests/asan_test.cc +++ b/compiler-rt/lib/asan/tests/asan_test.cc @@ -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); }