summaryrefslogtreecommitdiffstats
path: root/base/test
diff options
context:
space:
mode:
authorrickyz <rickyz@chromium.org>2015-02-03 00:44:28 -0800
committerCommit bot <commit-bot@chromium.org>2015-02-03 08:45:24 +0000
commit3371bf55c80d011f2d654b6566a20937df3b20f1 (patch)
treee007ae9c0583dc0444f91e6c73e7d706cf420710 /base/test
parent7e8cd61f389cc099f1d7bf40507094cdc770e5a8 (diff)
downloadchromium_src-3371bf55c80d011f2d654b6566a20937df3b20f1.zip
chromium_src-3371bf55c80d011f2d654b6566a20937df3b20f1.tar.gz
chromium_src-3371bf55c80d011f2d654b6566a20937df3b20f1.tar.bz2
Add the ability to change directories before execing.
BUG=387037 Review URL: https://codereview.chromium.org/885423003 Cr-Commit-Position: refs/heads/master@{#314294}
Diffstat (limited to 'base/test')
-rw-r--r--base/test/multiprocess_test.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/base/test/multiprocess_test.cc b/base/test/multiprocess_test.cc
index b95ea98..2cd6d8c 100644
--- a/base/test/multiprocess_test.cc
+++ b/base/test/multiprocess_test.cc
@@ -6,6 +6,8 @@
#include "base/base_switches.h"
#include "base/command_line.h"
+#include "base/files/file_path.h"
+#include "base/files/file_util.h"
namespace base {
@@ -26,7 +28,9 @@ Process SpawnMultiProcessTestChild(
#endif // !defined(OS_ANDROID)
CommandLine GetMultiProcessTestChildBaseCommandLine() {
- return *CommandLine::ForCurrentProcess();
+ CommandLine cmd_line = *CommandLine::ForCurrentProcess();
+ cmd_line.SetProgram(MakeAbsoluteFilePath(cmd_line.GetProgram()));
+ return cmd_line;
}
// MultiProcessTest ------------------------------------------------------------