summaryrefslogtreecommitdiff
path: root/lib/asan/tests/asan_test.cc
diff options
context:
space:
mode:
authorEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-16 08:34:31 +0000
committerEvgeniy Stepanov <eugeni.stepanov@gmail.com>2013-10-16 08:34:31 +0000
commit0f63831345e26b23d85a67e2dd96129f48eec477 (patch)
treef98cf9d033edeea793a7088f1cb0950a0f8206fa /lib/asan/tests/asan_test.cc
parent7ad195c7686f7246d6afa36e930884efae42abee (diff)
downloadcompiler-rt-0f63831345e26b23d85a67e2dd96129f48eec477.tar.gz
[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. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@192777 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/asan/tests/asan_test.cc')
-rw-r--r--lib/asan/tests/asan_test.cc11
1 files changed, 0 insertions, 11 deletions
diff --git a/lib/asan/tests/asan_test.cc b/lib/asan/tests/asan_test.cc
index ba7bd8386..38a550294 100644
--- a/lib/asan/tests/asan_test.cc
+++ b/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++) {