diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-15 12:20:16 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-15 12:20:16 +0000 |
| commit | 7a2bbc30a2a397134ac22262e5bcaf0afc8ce98d (patch) | |
| tree | 29942c86cd72f1e77d129fa96fe7dd62b1bf2a37 | |
| parent | 1d9cb434b3ff6942ab9d1e1992f65481346e16ab (diff) | |
| download | bcm5719-llvm-7a2bbc30a2a397134ac22262e5bcaf0afc8ce98d.tar.gz bcm5719-llvm-7a2bbc30a2a397134ac22262e5bcaf0afc8ce98d.zip | |
[msan] Remove CallocOverflow test.
This behaviour depends on MSAN_OPTIONS.
All interesting combinations are covered by lit_tests/allocator_returns_null.cc.
llvm-svn: 192691
| -rw-r--r-- | compiler-rt/lib/msan/tests/msan_test.cc | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/compiler-rt/lib/msan/tests/msan_test.cc b/compiler-rt/lib/msan/tests/msan_test.cc index 0e89fce953c..1ef769d0daf 100644 --- a/compiler-rt/lib/msan/tests/msan_test.cc +++ b/compiler-rt/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; |

