summaryrefslogtreecommitdiffstats
path: root/chrome/test/out_of_proc_test_runner.cc
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-10 00:28:45 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-10 00:28:45 +0000
commit820228392210944265bacb7c22fc1f88291dfe97 (patch)
tree5897ff0ed0f4f841f7f8c6f007ff12d13dcbeeb4 /chrome/test/out_of_proc_test_runner.cc
parentdf33f99d90ac431f91ceb7e354d3677f44309833 (diff)
downloadchromium_src-820228392210944265bacb7c22fc1f88291dfe97.zip
chromium_src-820228392210944265bacb7c22fc1f88291dfe97.tar.gz
chromium_src-820228392210944265bacb7c22fc1f88291dfe97.tar.bz2
Make browser_tests obey BROWSER_WRAPPER, like how ui_tests do.
Review URL: http://codereview.chromium.org/4632002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65602 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/out_of_proc_test_runner.cc')
-rw-r--r--chrome/test/out_of_proc_test_runner.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/test/out_of_proc_test_runner.cc b/chrome/test/out_of_proc_test_runner.cc
index 64ceb161..a14a38a 100644
--- a/chrome/test/out_of_proc_test_runner.cc
+++ b/chrome/test/out_of_proc_test_runner.cc
@@ -275,6 +275,13 @@ int RunTest(const std::string& test_name) {
base::ProcessHandle process_handle;
#if defined(OS_POSIX)
+ const char* browser_wrapper = getenv("BROWSER_WRAPPER");
+ if (browser_wrapper) {
+ new_cmd_line.PrependWrapper(browser_wrapper);
+ VLOG(1) << "BROWSER_WRAPPER was set, prefixing command_line with "
+ << browser_wrapper;
+ }
+
// On POSIX, we launch the test in a new process group with pgid equal to
// its pid. Any child processes that the test may create will inherit the
// same pgid. This way, if the test is abruptly terminated, we can clean up