22 TEST(EscapeForDepfileTest, SpacesInFilename) {
27 TEST(MSVCHelperTest, EnvBlock) {
28 char env_block[] =
"foo=bar\0";
32 cl.
Run(
"cmd /c \"echo foo is %foo%", &output);
36 TEST(MSVCHelperTest, NoReadOfStderr) {
39 cl.
Run(
"cmd /c \"echo to stdout&& echo to stderr 1>&2", &output);
TEST(EscapeForDepfileTest, SpacesInFilename)
int Run(const std::string &command, std::string *output)
Start a process and gather its raw output.
Wraps a synchronous execution of a CL subprocess.
string EscapeForDepfile(const string &path)
void SetEnvBlock(void *env_block)
Set the environment block (as suitable for CreateProcess) to be used by Run().