forked from OSchip/llvm-project
Enable AddressSanitizerMac.CFAllocatorDefaultDoubleFree and AddressSanitizerMac.CFAllocatorMallocDoubleFree, which now work fine.
llvm-svn: 158886
This commit is contained in:
parent
1bde28b464
commit
15b4cafd2c
|
@ -1900,21 +1900,21 @@ TEST(AddressSanitizer, BufferOverflowAfterManyFrees) {
|
|||
|
||||
#ifdef __APPLE__
|
||||
#include "asan_mac_test.h"
|
||||
// TODO(glider): figure out whether we still need these tests. Is it correct
|
||||
// to intercept CFAllocator?
|
||||
TEST(AddressSanitizerMac, DISABLED_CFAllocatorDefaultDoubleFree) {
|
||||
TEST(AddressSanitizerMac, CFAllocatorDefaultDoubleFree) {
|
||||
EXPECT_DEATH(
|
||||
CFAllocatorDefaultDoubleFree(),
|
||||
"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) {
|
||||
EXPECT_DEATH(
|
||||
CFAllocatorSystemDefaultDoubleFree(),
|
||||
"attempting double-free");
|
||||
}
|
||||
|
||||
TEST(AddressSanitizerMac, DISABLED_CFAllocatorMallocDoubleFree) {
|
||||
TEST(AddressSanitizerMac, CFAllocatorMallocDoubleFree) {
|
||||
EXPECT_DEATH(CFAllocatorMallocDoubleFree(), "attempting double-free");
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue