summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--base/tools_sanity_unittest.cc8
1 files changed, 8 insertions, 0 deletions
diff --git a/base/tools_sanity_unittest.cc b/base/tools_sanity_unittest.cc
index 6b7d6f9..249ec71 100644
--- a/base/tools_sanity_unittest.cc
+++ b/base/tools_sanity_unittest.cc
@@ -121,6 +121,14 @@ TEST(ToolsSanityTest, SingleElementDeletedWithBraces) {
delete [] foo;
}
+#ifdef ADDRESS_SANITIZER
+TEST(ToolsSanityTest, DISABLED_AddressSanitizerCrashTest) {
+ // Intentionally crash to make sure AddressSanitizer is running.
+ // This test should not be ran on bots.
+ int* volatile zero = NULL;
+ *zero = 0;
+}
+#endif
namespace {