From e726963d587b1d95320da4f5f05cd563e36eb8fe Mon Sep 17 00:00:00 2001 From: Vitaly Buka Date: Tue, 18 Jul 2017 01:39:56 +0000 Subject: [asan] Remove recent asan tests which expect death in allocator These tests assume allocator_may_return_null=false If allocator_may_return_null=true, gtest would not be able to switch it. Tests needs to be re-implemented as lit tests. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@308254 91177308-0d34-0410-b5e6-96231b3b80d8 --- lib/asan/tests/asan_test.cc | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'lib') diff --git a/lib/asan/tests/asan_test.cc b/lib/asan/tests/asan_test.cc index 78c3a0e4e..7e9cf3bab 100644 --- a/lib/asan/tests/asan_test.cc +++ b/lib/asan/tests/asan_test.cc @@ -82,13 +82,6 @@ TEST(AddressSanitizer, VariousMallocsTest) { EXPECT_EQ(0, pm_res); EXPECT_NE(nullptr, pm); free(pm); - - // Alignment is not a power of 2. - EXPECT_DEATH(posix_memalign(&pm, 3, kPageSize), - "allocator is terminating the process instead of returning 0"); - // Alignment is a power of 2, but not a multiple of size(void *). - EXPECT_DEATH(posix_memalign(&pm, 2, kPageSize), - "allocator is terminating the process instead of returning 0"); #endif // SANITIZER_TEST_HAS_POSIX_MEMALIGN #if SANITIZER_TEST_HAS_MEMALIGN @@ -96,9 +89,6 @@ TEST(AddressSanitizer, VariousMallocsTest) { EXPECT_EQ(0U, (uintptr_t)ma % kPageSize); ma[123] = 0; free(ma); - - EXPECT_DEATH(memalign(3, kPageSize), - "allocator is terminating the process instead of returning 0"); #endif // SANITIZER_TEST_HAS_MEMALIGN } -- cgit v1.2.3