diff options
author | rickyz <rickyz@chromium.org> | 2015-02-03 00:44:28 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-02-03 08:45:24 +0000 |
commit | 3371bf55c80d011f2d654b6566a20937df3b20f1 (patch) | |
tree | e007ae9c0583dc0444f91e6c73e7d706cf420710 /base/test | |
parent | 7e8cd61f389cc099f1d7bf40507094cdc770e5a8 (diff) | |
download | chromium_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.cc | 6 |
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 ------------------------------------------------------------ |