summaryrefslogtreecommitdiffstats
path: root/net/test
diff options
context:
space:
mode:
authorphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-11 19:41:40 +0000
committerphajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-11 19:41:40 +0000
commit5102497f1d1dc0cc29967f66ac103185e279b5c6 (patch)
treea61b6d4c63a9cbaf682fcb0d58c81f248010fd21 /net/test
parentec46b04d8f275ca122ee3bae85f311f5009987d2 (diff)
downloadchromium_src-5102497f1d1dc0cc29967f66ac103185e279b5c6.zip
chromium_src-5102497f1d1dc0cc29967f66ac103185e279b5c6.tar.gz
chromium_src-5102497f1d1dc0cc29967f66ac103185e279b5c6.tar.bz2
GTTF: Add debugging code for flaky test server startup issues.
I was unable to reproduce locally, we need to catch it on the bots. My suspicion is we hang even before execvp - this debugging code can easily disprove this hypothesis, or otherwise pinpoint the hanging place. BUG=96594 Review URL: https://codereview.chromium.org/12711002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@187343 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/test')
-rw-r--r--net/test/local_test_server_posix.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/net/test/local_test_server_posix.cc b/net/test/local_test_server_posix.cc
index 48af349..f655b97 100644
--- a/net/test/local_test_server_posix.cc
+++ b/net/test/local_test_server_posix.cc
@@ -135,6 +135,10 @@ bool LocalTestServer::LaunchPython(const base::FilePath& testserver_path) {
// Launch a new testserver process.
base::LaunchOptions options;
+
+ // TODO(phajdan.jr): Remove after fixing http://crbug.com/96594 .
+ options.debug = true;
+
options.fds_to_remap = &map_write_fd;
if (!base::LaunchProcess(python_command, options, &process_handle_)) {
LOG(ERROR) << "Failed to launch " << python_command.GetCommandLineString();