diff options
| author | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-16 08:34:31 +0000 |
|---|---|---|
| committer | Evgeniy Stepanov <eugeni.stepanov@gmail.com> | 2013-10-16 08:34:31 +0000 |
| commit | ec8ec333f02015fdbaacf9573ea703fd900092c5 (patch) | |
| tree | 1fbbee5e5b0121b2b10313c4a7cf7b463617475a | |
| parent | 8df08225e5a82febb3d7cc255db7d577f74c7800 (diff) | |
| download | bcm5719-llvm-ec8ec333f02015fdbaacf9573ea703fd900092c5.tar.gz bcm5719-llvm-ec8ec333f02015fdbaacf9573ea703fd900092c5.zip | |
[asan] Remove CallocOverflow32 test from asan_test.
The same as with MSan, this test behavior depends on ASAN_OPTIONS, and we've
got a lit_test that covers this.
llvm-svn: 192777
| -rw-r--r-- | compiler-rt/lib/asan/tests/asan_test.cc | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc index ba7bd838672..38a55029482 100644 --- a/compiler-rt/lib/asan/tests/asan_test.cc +++ b/compiler-rt/lib/asan/tests/asan_test.cc @@ -111,17 +111,6 @@ TEST(AddressSanitizer, CallocTest) { free(a); } -TEST(AddressSanitizer, CallocOverflow32) { -#if SANITIZER_WORDSIZE == 32 - size_t kArraySize = 112; - volatile size_t kArraySize2 = 43878406; - void *p = 0; - EXPECT_DEATH(p = calloc(kArraySize, kArraySize2), - "allocator is terminating the process instead of returning 0"); - assert(!p); -#endif -} - TEST(AddressSanitizer, CallocReturnsZeroMem) { size_t sizes[] = {16, 1000, 10000, 100000, 2100000}; for (size_t s = 0; s < sizeof(sizes)/sizeof(sizes[0]); s++) { |

