Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine.

llvm-svn: 158886
This commit is contained in:
Alexander Potapenko 2012-06-21 01:04:30 +00:00
parent 1bde28b464
commit 15b4cafd2c
1 changed files with 4 additions and 4 deletions

View File

@ -1900,21 +1900,21 @@ TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
#ifdef __APPLE__ #ifdef __APPLE__
#include "asan_mac_test.h" #include "asan_mac_test.h"
// TODO(glider): figure out whether we still need these tests. Is it correct TEST(AddressSanitizerMac, CFAllocatorDefaultDoubleFree) {
// to intercept CFAllocator?
TEST(AddressSanitizerMac, DISABLED_CFAllocatorDefaultDoubleFree) {
EXPECT_DEATH( EXPECT_DEATH(
CFAllocatorDefaultDoubleFree(), CFAllocatorDefaultDoubleFree(),
"attempting double-free"); "attempting double-free");
} }
// TODO(glider): figure out whether we still need these tests. Is it correct
// to intercept the non-default CFAllocators?
TEST(AddressSanitizerMac, DISABLED_CFAllocatorSystemDefaultDoubleFree) { TEST(AddressSanitizerMac, DISABLED_CFAllocatorSystemDefaultDoubleFree) {
EXPECT_DEATH( EXPECT_DEATH(
CFAllocatorSystemDefaultDoubleFree(), CFAllocatorSystemDefaultDoubleFree(),
"attempting double-free"); "attempting double-free");
} }
TEST(AddressSanitizerMac, DISABLED_CFAllocatorMallocDoubleFree) { TEST(AddressSanitizerMac, CFAllocatorMallocDoubleFree) {
EXPECT_DEATH(CFAllocatorMallocDoubleFree(), "attempting double-free"); EXPECT_DEATH(CFAllocatorMallocDoubleFree(), "attempting double-free");
} }