[llvm-commits] [compiler-rt] r158047 - /compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
Alexey Samsonov
samsonov at google.com
Tue Jun 5 23:02:05 PDT 2012
Author: samsonov
Date: Wed Jun 6 01:02:05 2012
New Revision: 158047
URL: http://llvm.org/viewvc/llvm-project?rev=158047&view=rev
Log:
[ASan] fix GetFreeBytesTest interface test on 32-bit Linux - delete some assumptions about the behavior of allocator in test code
Modified:
compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
Modified: compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc?rev=158047&r1=158046&r2=158047&view=diff
==============================================================================
--- compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc (original)
+++ compiler-rt/trunk/lib/asan/tests/asan_interface_test.cc Wed Jun 6 01:02:05 2012
@@ -152,12 +152,6 @@
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");
}
More information about the llvm-commits
mailing list