Merged PR 631839: Fix PipChildProcessSurvives tests

This test is failing consistently for me locally. I suspect the behavior of `cmd /k` may have changed or something like that

Related work items: #1881970
This commit is contained in:
Marcelo Lynch 🧉 2021-09-29 22:48:06 +00:00
Родитель dbd89c4097
Коммит 8d0ba4ef96
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -1680,7 +1680,7 @@ namespace Test.BuildXL.Processes.Detours
AbsolutePath workingDirectoryAbsolutePath = AbsolutePath.Create(context.PathTable, TestOutputDirectory);
var arguments = new PipDataBuilder(context.PathTable.StringTable);
arguments.Add("/d /c start /B " + CmdHelper.CmdX64 + " /k"); // Starts child process that hangs on console input and has to be killed by job object.
arguments.Add("/d /c start /B " + CmdHelper.CmdX64 + " /C timeout 1000 > NUL"); // Starts child process that 'hangs' and has to be killed by job object.
var pip = new Process(
executableFileArtifact,
@ -1749,7 +1749,7 @@ namespace Test.BuildXL.Processes.Detours
AbsolutePath workingDirectoryAbsolutePath = AbsolutePath.Create(context.PathTable, TestOutputDirectory);
var arguments = new PipDataBuilder(context.PathTable.StringTable);
arguments.Add("/d /c start /B " + CmdHelper.CmdX64 + " /k"); // Starts child process that hangs on console input and has to be killed by job object.
arguments.Add("/d /c start /B " + CmdHelper.CmdX64 + " /C timeout 1000 > NUL"); // Starts child process that 'hangs' and has to be killed by job object.
var pip = new Process(
executableFileArtifact,