diff options
author | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 17:18:24 +0000 |
---|---|---|
committer | glider@chromium.org <glider@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-10-12 17:18:24 +0000 |
commit | 6fcbc62f92dadf45ae6d17f0037fd39160722226 (patch) | |
tree | e9269aec8e6eb395b9cb370a4348809492ab4300 /base | |
parent | faf3574e5c98b92046d73eb047b3fb890edaf02a (diff) | |
download | chromium_src-6fcbc62f92dadf45ae6d17f0037fd39160722226.zip chromium_src-6fcbc62f92dadf45ae6d17f0037fd39160722226.tar.gz chromium_src-6fcbc62f92dadf45ae6d17f0037fd39160722226.tar.bz2 |
Add a sanity test that crashes under ASan. This should be used to check that the tests are built correctly.
Review URL: http://codereview.chromium.org/8240010
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@105108 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r-- | base/tools_sanity_unittest.cc | 8 |
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 { |