From 5102497f1d1dc0cc29967f66ac103185e279b5c6 Mon Sep 17 00:00:00 2001 From: "phajdan.jr@chromium.org" Date: Mon, 11 Mar 2013 19:41:40 +0000 Subject: 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 --- net/test/local_test_server_posix.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'net/test') 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(); -- cgit v1.1