mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix another Start-Process test
This one would sometimes just fail to stop the process... which is a probably a bug to be fixed.
This commit is contained in:
@@ -64,13 +64,11 @@ Describe "Start-Process" {
|
||||
}
|
||||
|
||||
It "Should should handle stderr redirection without error" {
|
||||
$process = Start-Process ping -ArgumentList $pingParamNoStop -PassThru -RedirectStandardError $tempFile
|
||||
$process = Start-Process ping -ArgumentList $pingParamStop -PassThru -RedirectStandardError $tempFile
|
||||
|
||||
$process.Length | Should Be 1
|
||||
$process.Id | Should BeGreaterThan 1
|
||||
$process.ProcessName | Should Be "ping"
|
||||
|
||||
Stop-Process -Id $process.Id
|
||||
}
|
||||
|
||||
It "Should should handle stdout redirection without error" {
|
||||
|
||||
Reference in New Issue
Block a user