[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.

llvm-svn: 308254
This commit is contained in:
Vitaly Buka 2017-07-18 01:39:56 +00:00
parent f1b5c64052
commit 013317d9d5
1 changed files with 0 additions and 10 deletions

View File

@ -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
}