20 TEST(EscapeForDepfileTest, SpacesInFilename) {
25 TEST(MSVCHelperTest, EnvBlock) {
26 char env_block[] =
"foo=bar\0";
30 cl.
Run(
"cmd /c \"echo foo is %foo%", &output);
34 TEST(MSVCHelperTest, NoReadOfStderr) {
37 cl.
Run(
"cmd /c \"echo to stdout&& echo to stderr 1>&2", &output);
TEST(EscapeForDepfileTest, SpacesInFilename)
int Run(const string &command, 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().