Chromium Code Reviews| Index: content/public/test/test_launcher.cc |
| diff --git a/content/public/test/test_launcher.cc b/content/public/test/test_launcher.cc |
| index 0c3e3555d3ca6aaa9a22db240bca5ee8b5647cb0..41cc79daa94b92e51046cd93fe3246c5009dcff4 100644 |
| --- a/content/public/test/test_launcher.cc |
| +++ b/content/public/test/test_launcher.cc |
| @@ -86,7 +86,17 @@ int DoRunTestInternal(const testing::TestCase* test_case, |
| } |
| } |
| - CommandLine new_cmd_line(command_line); |
| + CommandLine new_cmd_line(command_line.GetProgram()); |
| + CommandLine::SwitchMap switches = command_line.GetSwitches(); |
| + |
| + // Strip out gtest_output flag because otherwise we would overwrite results |
| + // of the other tests. |
| + switches.erase(base::kGTestOutputFlag); |
| + |
| + for (CommandLine::SwitchMap::const_iterator iter = switches.begin(); |
| + iter != switches.end(); ++iter) { |
| + new_cmd_line.AppendSwitchNative((*iter).first, (*iter).second); |
|
M-A Ruel
2013/08/15 01:59:14
same interogation
Paweł Hajdan Jr.
2013/08/15 21:54:45
Done.
|
| + } |
| // Always enable disabled tests. This method is not called with disabled |
| // tests unless this flag was specified to the browser test executable. |