Index: base/tools_sanity_unittest.cc |
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc |
index c03110e24b4965ea89ba117106ef7bf8d48ce9ca..5b9a0191e1129c2e445abc57d7c169f7a50a84aa 100644 |
--- a/base/tools_sanity_unittest.cc |
+++ b/base/tools_sanity_unittest.cc |
@@ -112,9 +112,6 @@ TEST(ToolsSanityTest, MemoryLeak) { |
#else |
#define MAYBE_AccessesToNewMemory AccessesToNewMemory |
#define MAYBE_AccessesToMallocMemory AccessesToMallocMemory |
-#define MAYBE_ArrayDeletedWithoutBraces ArrayDeletedWithoutBraces |
-#define MAYBE_SingleElementDeletedWithBraces SingleElementDeletedWithBraces |
-#endif |
// The following tests pass with Clang r170392, but not r172454, which |
// makes AddressSanitizer detect errors in them. We disable these tests under |
@@ -126,7 +123,12 @@ TEST(ToolsSanityTest, MemoryLeak) { |
#define MAYBE_SingleElementDeletedWithBraces \ |
DISABLED_SingleElementDeletedWithBraces |
#define MAYBE_ArrayDeletedWithoutBraces DISABLED_ArrayDeletedWithoutBraces |
-#endif |
+#else |
+#define MAYBE_ArrayDeletedWithoutBraces ArrayDeletedWithoutBraces |
+#define MAYBE_SingleElementDeletedWithBraces SingleElementDeletedWithBraces |
+#endif // defined(ADDRESS_SANITIZER) || defined(SYZYASAN) |
+ |
+#endif // (defined(ADDRESS_SANITIZER) && defined(OS_IOS)) || defined(SYZYASAN) |
Nico
2014/07/16 19:02:29
Are you sure this endif should move to down here?
tzik
2014/07/17 06:05:42
Ah, right. This should move above.
Done.
|
TEST(ToolsSanityTest, MAYBE_AccessesToNewMemory) { |
char *foo = new char[10]; |
MakeSomeErrors(foo, 10); |