mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Fix Start-Process tests
OS X's ping command requires the flags to be specified before the arguments. I also reduced the ping count so that the tests execute a bit faster. This resolves #556.
This commit is contained in:
@@ -3,13 +3,11 @@ Describe "Start-Process" {
|
||||
$pingDirectory = Split-Path $pingCommand -Parent
|
||||
$tempFile = Join-Path -Path $TestDrive -ChildPath PSTest
|
||||
$assetsFile = Join-Path -Path (Join-Path -Path $PSScriptRoot -ChildPath assets) -ChildPath SortTest.txt
|
||||
if ($IsWindows)
|
||||
{
|
||||
$pingParam = "localhost -n 4"
|
||||
if ($IsWindows) {
|
||||
$pingParam = "-n 2 localhost"
|
||||
}
|
||||
else
|
||||
{
|
||||
$pingParam = "localhost -c 4"
|
||||
elseif ($IsLinux -Or $IsOSX) {
|
||||
$pingParam = "-c 2 localhost"
|
||||
}
|
||||
|
||||
It "Should process arguments without error" {
|
||||
|
||||
Reference in New Issue
Block a user