| Index: chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc
|
| ===================================================================
|
| --- chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc (revision 176797)
|
| +++ chrome/browser/nacl_host/test/gdb_debug_stub_browsertest.cc (working copy)
|
| @@ -3,6 +3,7 @@
|
| // found in the LICENSE file.
|
|
|
| #include "base/command_line.h"
|
| +#include "base/environment.h"
|
| #include "base/path_service.h"
|
| #include "base/process_util.h"
|
| #include "base/string_number_conversions.h"
|
| @@ -48,10 +49,14 @@
|
| void NaClGdbDebugStubTest::RunDebugStubTest(const std::string& nacl_module,
|
| const std::string& test_name) {
|
| base::ProcessHandle test_script;
|
| + scoped_ptr<base::Environment> env(base::Environment::Create());
|
| NaClBrowser::GetInstance()->SetGdbDebugStubPortListener(
|
| base::Bind(&NaClGdbDebugStubTest::StartTestScript,
|
| base::Unretained(this), &test_script, test_name));
|
| + // Turn on debug stub logging.
|
| + env->SetVar("NACLVERBOSITY", "1");
|
| RunTestViaHTTP(nacl_module);
|
| + env->UnSetVar("NACLVERBOSITY");
|
| NaClBrowser::GetInstance()->ClearGdbDebugStubPortListener();
|
| int exit_code;
|
| base::WaitForExitCode(test_script, &exit_code);
|
|
|