summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorVitaly Buka <vitalybuka@google.com>2017-07-18 01:39:56 +0000
committerVitaly Buka <vitalybuka@google.com>2017-07-18 01:39:56 +0000
commite726963d587b1d95320da4f5f05cd563e36eb8fe (patch)
tree6c8eae61177cc8fa768c3e0006eaeafec104e8f2 /lib
parent7e46d78d47832f03ce42adcf56417fbfd47cbaad (diff)
[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
Diffstat (limited to 'lib')
-rw-r--r--lib/asan/tests/asan_test.cc10
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
}