diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/asan/tests/asan_test.cc | 10 |
1 files changed, 0 insertions, 10 deletions
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 } |