[compiler-rt] r192691 - [msan] Remove CallocOverflow test.
Evgeniy Stepanov
eugeni.stepanov at gmail.com
Tue Oct 15 05:20:16 PDT 2013
Author: eugenis
Date: Tue Oct 15 07:20:16 2013
New Revision: 192691
URL: http://llvm.org/viewvc/llvm-project?rev=192691&view=rev
Log:
[msan] Remove CallocOverflow test.
This behaviour depends on MSAN_OPTIONS.
All interesting combinations are covered by lit_tests/allocator_returns_null.cc.
Modified:
compiler-rt/trunk/lib/msan/tests/msan_test.cc
Modified: compiler-rt/trunk/lib/msan/tests/msan_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/msan/tests/msan_test.cc?rev=192691&r1=192690&r2=192691&view=diff
==============================================================================
--- compiler-rt/trunk/lib/msan/tests/msan_test.cc (original)
+++ compiler-rt/trunk/lib/msan/tests/msan_test.cc Tue Oct 15 07:20:16 2013
@@ -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;
More information about the llvm-commits
mailing list