[compiler-rt] r196904 - [asan] relax HugeMallocTest so that it does not fail on small-RAM machines
Kostya Serebryany
kcc at google.com
Tue Dec 10 02:34:55 PST 2013
Author: kcc
Date: Tue Dec 10 04:34:55 2013
New Revision: 196904
URL: http://llvm.org/viewvc/llvm-project?rev=196904&view=rev
Log:
[asan] relax HugeMallocTest so that it does not fail on small-RAM machines
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=196904&r1=196903&r2=196904&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_test.cc Tue Dec 10 04:34:55 2013
@@ -301,7 +301,9 @@ TEST(AddressSanitizer, LargeMallocTest)
TEST(AddressSanitizer, HugeMallocTest) {
if (SANITIZER_WORDSIZE != 64 || ASAN_AVOID_EXPENSIVE_TESTS) return;
size_t n_megs = 4100;
- TestLargeMalloc(n_megs << 20);
+ EXPECT_DEATH(Ident((char*)malloc(n_megs << 20))[-1] = 0,
+ "is located 1 bytes to the left|"
+ "AddressSanitizer failed to allocate");
}
#ifndef __APPLE__
More information about the llvm-commits
mailing list