| Index: gpu/gles2_conform_support/gles2_conform_test.cc
|
| diff --git a/gpu/gles2_conform_support/gles2_conform_test.cc b/gpu/gles2_conform_support/gles2_conform_test.cc
|
| index 1948eab9c9d6b9c25c6d9e7e45c428682a15318c..9b714462626fd46e2cc35ed2c829f6b39000fe33 100644
|
| --- a/gpu/gles2_conform_support/gles2_conform_test.cc
|
| +++ b/gpu/gles2_conform_support/gles2_conform_test.cc
|
| @@ -63,8 +63,11 @@ bool RunGLES2ConformTest(const char* path) {
|
| base::FilePath program(test_path.Append(FILE_PATH_LITERAL(
|
| "gles2_conform_test_windowless")));
|
|
|
| + CommandLine* currentCmdLine = CommandLine::ForCurrentProcess();
|
| CommandLine cmdline(program);
|
| - cmdline.AppendSwitch(std::string("-run=") + path);
|
| + cmdline.AppendArguments(*currentCmdLine, false);
|
| + cmdline.AppendSwitch(std::string("--"));
|
| + cmdline.AppendArg(std::string("-run=") + path);
|
|
|
| std::string output;
|
| bool success = base::GetAppOutput(cmdline, &output);
|
| @@ -82,6 +85,7 @@ bool RunGLES2ConformTest(const char* path) {
|
|
|
| int main(int argc, char** argv) {
|
| base::AtExitManager exit_manager;
|
| + CommandLine::Init(argc, argv);
|
| #if defined(OS_MACOSX)
|
| base::mac::ScopedNSAutoreleasePool pool;
|
| #endif
|
|
|