diff options
| author | Alexey Samsonov <samsonov@google.com> | 2012-06-06 06:02:05 +0000 |
|---|---|---|
| committer | Alexey Samsonov <samsonov@google.com> | 2012-06-06 06:02:05 +0000 |
| commit | 7fca5ccdae41a19092dc877411c1a3e0aea729a2 (patch) | |
| tree | 225e379723ceffe3d9acf3673eaf1d2cafc76f3a | |
| parent | 6fa89b7a06e4017a997994d5e67c2bd9506a634f (diff) | |
| download | bcm5719-llvm-7fca5ccdae41a19092dc877411c1a3e0aea729a2.tar.gz bcm5719-llvm-7fca5ccdae41a19092dc877411c1a3e0aea729a2.zip | |
[ASan] fix GetFreeBytesTest interface test on 32-bit Linux - delete some assumptions about the behavior of allocator in test code
llvm-svn: 158047
| -rw-r--r-- | compiler-rt/lib/asan/tests/asan_interface_test.cc | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_interface_test.cc b/compiler-rt/lib/asan/tests/asan_interface_test.cc index d632759fe10..5c7b6f2f8a5 100644 --- a/compiler-rt/lib/asan/tests/asan_interface_test.cc +++ b/compiler-rt/lib/asan/tests/asan_interface_test.cc @@ -152,12 +152,6 @@ TEST(AddressSanitizerInterface, GetFreeBytesTest) { EXPECT_LT(new_free_bytes, old_free_bytes); old_free_bytes = new_free_bytes; } - // Deleting these chunks will move them to quarantine, number of free - // bytes won't increase. - for (i = 0; i < kNumOfChunks; i++) { - free(chunks[i]); - EXPECT_EQ(old_free_bytes, __asan_get_free_bytes()); - } EXPECT_DEATH(DoLargeMallocForGetFreeBytesTestAndDie(), "double-free"); } |

