Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion ILSpy.Tests.Windows/Processes/NetFrameworkProcessesTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,10 @@ public void StartADotNetFrameworkProcess()
File.Exists(WindowsPowerShellPath).Should().BeTrue(
"Windows PowerShell 5.1 is the .NET Framework process this fixture inspects");

// The host lives exactly as long as the test host process: no wall clock for a slow
// machine to outrun mid-fixture, and no orphan if the teardown never runs.
host = Process.Start(new ProcessStartInfo(WindowsPowerShellPath,
"-NoProfile -NonInteractive -Command \"Start-Sleep -Seconds 300\"") {
$"-NoProfile -NonInteractive -Command \"Wait-Process -Id {Environment.ProcessId}\"") {
UseShellExecute = false,
CreateNoWindow = true,
});
Expand Down
Loading