aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorAlexander Potapenko <glider@google.com>2013-04-23 12:14:55 +0000
committerAlexander Potapenko <glider@google.com>2013-04-23 12:14:55 +0000
commit8db82e151f4dc3de33530adce370a3d86be54cf9 (patch)
tree49c7119d6cdb84250b1edde7849e8dfc534dab63 /lib
parent103a63ed3fb5511516b55ce1ee4f33290209f3d8 (diff)
[ASan] Disable AddressSanitizer.AllocDeallocMismatch on Darwin.
See https://code.google.com/p/address-sanitizer/issues/detail?id=131. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@180093 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib')
-rw-r--r--lib/asan/tests/asan_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/asan/tests/asan_test.cc b/lib/asan/tests/asan_test.cc
index 64d70a35e..00c4f9c9a 100644
--- a/lib/asan/tests/asan_test.cc
+++ b/lib/asan/tests/asan_test.cc
@@ -1082,7 +1082,9 @@ TEST(AddressSanitizer, AttributeNoAddressSafetyTest) {
}
// It doesn't work on Android, as calls to new/delete go through malloc/free.
-#if !defined(ANDROID) && !defined(__ANDROID__)
+// Neither it does on OS X, see
+// https://code.google.com/p/address-sanitizer/issues/detail?id=131.
+#if !defined(ANDROID) && !defined(__ANDROID__) && !defined(__APPLE__)
static string MismatchStr(const string &str) {
return string("AddressSanitizer: alloc-dealloc-mismatch \\(") + str;
}