summaryrefslogtreecommitdiff
path: root/lib/msan/tests
diff options
context:
space:
mode:
authorBenjamin Kramer <benny.kra@googlemail.com>2017-08-04 07:32:10 +0000
committerBenjamin Kramer <benny.kra@googlemail.com>2017-08-04 07:32:10 +0000
commitb78dceb242dc3f37b19687b2ce7b60b10b9f7969 (patch)
treeb0c74610d58e057b5955f4814741b2c111124729 /lib/msan/tests
parentd4151aa47c598a5d1f1ec1a167fc4f3f5797de7a (diff)
[msan] Switch the pvalloc overflow test to a lit test
The test was not passing on targets where allocator_may_return_null defaults to true. Change the test to a lit test so that we can test both situations. Patch by Kostya Kortchinsky! Differential Revision: https://reviews.llvm.org/D36302 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@310033 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/msan/tests')
-rw-r--r--lib/msan/tests/msan_test.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/msan/tests/msan_test.cc b/lib/msan/tests/msan_test.cc
index 0310656d1..b2d5f7c60 100644
--- a/lib/msan/tests/msan_test.cc
+++ b/lib/msan/tests/msan_test.cc
@@ -3449,12 +3449,6 @@ TEST(MemorySanitizer, pvalloc) {
EXPECT_EQ(0U, (uintptr_t)p % PageSize);
EXPECT_EQ(PageSize, __sanitizer_get_allocated_size(p));
free(p);
-
- // Overflows should be caught.
- EXPECT_DEATH(p = pvalloc((uintptr_t)-1),
- "allocator is terminating the process instead of returning 0");
- EXPECT_DEATH(p = pvalloc((uintptr_t)-(PageSize - 1)),
- "allocator is terminating the process instead of returning 0");
}
#endif