diff options
author | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-22 19:41:48 +0000 |
---|---|---|
committer | erikkay@google.com <erikkay@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-22 19:41:48 +0000 |
commit | 2e8adb32ec10553d267ce65353b92066f1fe2a7a (patch) | |
tree | 8542328f869b289fa591ab3afb8fef45fe69af33 /base/test_suite.h | |
parent | 34734f4b6f5dbf70be94775ab5b3b219ad235658 (diff) | |
download | chromium_src-2e8adb32ec10553d267ce65353b92066f1fe2a7a.zip chromium_src-2e8adb32ec10553d267ce65353b92066f1fe2a7a.tar.gz chromium_src-2e8adb32ec10553d267ce65353b92066f1fe2a7a.tar.bz2 |
Another horrible workaround for bug 6436 (purify freaking out with base_unittests.exe). I'm talking to a Rational engineer hoping to get a real solution. In the meantime, this fix will get base_unittests working under Purify again. See the bug for more of the ugly details.
BUG=6436
Review URL: http://codereview.chromium.org/18514
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8489 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/test_suite.h')
-rw-r--r-- | base/test_suite.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/base/test_suite.h b/base/test_suite.h index 2aacecd..410d931 100644 --- a/base/test_suite.h +++ b/base/test_suite.h @@ -104,7 +104,11 @@ class TestSuite { if (!IsDebuggerPresent() && !CommandLine::ForCurrentProcess()->HasSwitch(L"show-error-dialogs")) { SuppressErrorDialogs(); +#if !defined(PURIFY) + // When the code in this file moved around, bug 6436 resurfaced. + // As a hack workaround, just #ifdef out this code for Purify builds. logging::SetLogAssertHandler(UnitTestAssertHandler); +#endif } #endif |