summaryrefslogtreecommitdiffstats
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
commit15aa1cd1acd527146f50658bd9d4743be9348159 (patch)
tree905c52fa0dd8dee39a5a159f87e8e46f6827f911
parent70e94800e52ce8bdd0bec3655cd52667a4bf87c2 (diff)
downloadbcm5719-llvm-15aa1cd1acd527146f50658bd9d4743be9348159.tar.gz
bcm5719-llvm-15aa1cd1acd527146f50658bd9d4743be9348159.zip
[ASan] Disable AddressSanitizer.AllocDeallocMismatch on Darwin.
See https://code.google.com/p/address-sanitizer/issues/detail?id=131. llvm-svn: 180093
-rw-r--r--compiler-rt/lib/asan/tests/asan_test.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler-rt/lib/asan/tests/asan_test.cc b/compiler-rt/lib/asan/tests/asan_test.cc
index 64d70a35ec8..00c4f9c9a59 100644
--- a/compiler-rt/lib/asan/tests/asan_test.cc
+++ b/compiler-rt/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;
}
OpenPOWER on IntegriCloud