diff options
author | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-25 00:31:46 +0000 |
---|---|---|
committer | scottmg@chromium.org <scottmg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-07-25 00:31:46 +0000 |
commit | 5336501fc29b58b78cfd6e70a540366450e11ea4 (patch) | |
tree | da5555894215d4218d25c5386b63f1168f9e7e49 | |
parent | a7cfa6868e620e20219b274ac473d4f068ddbfa7 (diff) | |
download | chromium_src-5336501fc29b58b78cfd6e70a540366450e11ea4.zip chromium_src-5336501fc29b58b78cfd6e70a540366450e11ea4.tar.gz chromium_src-5336501fc29b58b78cfd6e70a540366450e11ea4.tar.bz2 |
Block on LaunchProcess failing on specific bot
Block in a loop if we get a specific failure on a particular bot.
See environment variables at http://build.chromium.org/p/chromium.win/builders/Win8%20Aura/builds/20713/steps/views_unittests/logs/stdio for reference.
Timeout raise attempted at https://codereview.chromium.org/410353004/ so
that there will be time to attach a debugger.
R=brettw@chromium.org
BUG=340422
Review URL: https://codereview.chromium.org/411223002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285437 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | base/process/launch_win.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/base/process/launch_win.cc b/base/process/launch_win.cc index 9e4db38..fdaa5eb 100644 --- a/base/process/launch_win.cc +++ b/base/process/launch_win.cc @@ -10,6 +10,7 @@ #include <windows.h> #include <userenv.h> #include <psapi.h> +#include <stdlib.h> #include <ios> #include <limits> @@ -205,6 +206,16 @@ bool LaunchProcess(const string16& cmdline, startup_info, &temp_process_info)) { DPLOG(ERROR) << "Command line:" << std::endl << UTF16ToUTF8(cmdline) << std::endl;; + // TODO(scottmg): Temporary code for debugging http://crbug.com/340422. + if (getenv("CHROME_HEADLESS") && + strcmp(getenv("CHROME_HEADLESS"), "1") == 0 && + getenv("COMPUTERNAME") && + strcmp(getenv("COMPUTERNAME"), "VM898-M1") == 0) { + for (;;) { + DLOG(ERROR) << "Failed CreateProcess, waiting for debugger"; + ::Sleep(1000); + } + } return false; } } |