Index: tools/gn/exec_process_unittest.cc |
diff --git a/tools/gn/exec_process_unittest.cc b/tools/gn/exec_process_unittest.cc |
index 70a208c923d48a187e87346d3aa31ff01554eb9c..51ce7b753ba2905805d603db66bc04e12d4eee20 100644 |
--- a/tools/gn/exec_process_unittest.cc |
+++ b/tools/gn/exec_process_unittest.cc |
@@ -26,6 +26,7 @@ bool ExecPython(const std::string& command, |
std::string* std_err, |
int* exit_code) { |
base::ScopedTempDir temp_dir; |
+ CHECK(temp_dir.CreateUniqueTempDir()); |
base::CommandLine::StringVector args; |
#if defined(OS_WIN) |
args.push_back(L"python"); |
@@ -36,8 +37,8 @@ bool ExecPython(const std::string& command, |
args.push_back("-c"); |
args.push_back(command); |
#endif |
- return ExecProcess( |
- base::CommandLine(args), temp_dir.path(), std_out, std_err, exit_code); |
+ return ExecProcess(base::CommandLine(args), temp_dir.GetPath(), std_out, |
+ std_err, exit_code); |
} |
} // namespace |