diff options
author | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 07:46:08 +0000 |
---|---|---|
committer | sgjesse@chromium.org <sgjesse@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-11-20 07:46:08 +0000 |
commit | b351289447215f8f9fda9077934d42ae72668a90 (patch) | |
tree | ea6328182679fa164e7f776a27dd636864475327 /webkit/tools/test_shell/test_shell_main.cc | |
parent | 305d8c7eab56ac69d8451b47523c9e0bbcdfd8fa (diff) | |
download | chromium_src-b351289447215f8f9fda9077934d42ae72668a90.zip chromium_src-b351289447215f8f9fda9077934d42ae72668a90.tar.gz chromium_src-b351289447215f8f9fda9077934d42ae72668a90.tar.bz2 |
Add option --gp-fault-error-box to test shell and run_webkit_tests.py to enable the Windows GP fault dialog. This makes it easier to start debugging the crash in Visual Studio.
Review URL: http://codereview.chromium.org/11273
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@5765 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/tools/test_shell/test_shell_main.cc')
-rw-r--r-- | webkit/tools/test_shell/test_shell_main.cc | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/webkit/tools/test_shell/test_shell_main.cc b/webkit/tools/test_shell/test_shell_main.cc index 909cfa9..bbe90ef 100644 --- a/webkit/tools/test_shell/test_shell_main.cc +++ b/webkit/tools/test_shell/test_shell_main.cc @@ -107,7 +107,14 @@ int main(int argc, char* argv[]) { bool layout_test_mode = parsed_command_line.HasSwitch(test_shell::kLayoutTests); - TestShell::InitLogging(suppress_error_dialogs, layout_test_mode); + bool enable_gp_fault_error_box = false; +#if defined(OS_WIN) + enable_gp_fault_error_box = + parsed_command_line.HasSwitch(test_shell::kGPFaultErrorBox); +#endif + TestShell::InitLogging(suppress_error_dialogs, + layout_test_mode, + enable_gp_fault_error_box); // Set this early before we start using WebCore. webkit_glue::SetLayoutTestMode(layout_test_mode); |