summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-15 12:20:16 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-15 12:20:16 +0000
commite910a1630be10685b2985a383c1a012f5df6bf62 (patch)
treec3ab29288434b4a26ee610cec13fb9fd73049a0b
parent2191fcaa9658166c0c6e9c91013fefc015741395 (diff)
downloadcompiler-rt-e910a1630be10685b2985a383c1a012f5df6bf62.tar.gz
compiler-rt-e910a1630be10685b2985a383c1a012f5df6bf62.tar.bz2
compiler-rt-e910a1630be10685b2985a383c1a012f5df6bf62.tar.xz
[msan] Remove CallocOverflow test.
This behaviour depends on MSAN_OPTIONS. All interesting combinations are covered by lit_tests/allocator_returns_null.cc. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192691 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--lib/msan/tests/msan_test.cc10
1 files changed, 0 insertions, 10 deletions
diff --git a/lib/msan/tests/msan_test.cc b/lib/msan/tests/msan_test.cc
index 0e89fce9..1ef769d0 100644
--- a/lib/msan/tests/msan_test.cc
+++ b/lib/msan/tests/msan_test.cc
@@ -2986,16 +2986,6 @@ NOINLINE void RecursiveMalloc(int depth) {
delete x2;
}
-TEST(MemorySanitizer, CallocOverflow) {
- size_t kArraySize = 4096;
- volatile size_t kMaxSizeT = std::numeric_limits<size_t>::max();
- volatile size_t kArraySize2 = kMaxSizeT / kArraySize + 10;
- void *p = 0;
- EXPECT_DEATH(p = calloc(kArraySize, kArraySize2),
- "llocator is terminating the process instead of returning 0");
- EXPECT_EQ(0L, Ident(p));
-}
-
TEST(MemorySanitizer, Select) {
int x;
int volatile* p = &x;