Fix Select-Object.Tests.ps1 which might fail for Unix OS. (#6747)

Fix Select-Object.Tests.ps1 which might fail for Unix OS.
In the test, the processes which name matches i* are selected and it checks if there is non zero number of these processes. The test assumes that there is always at least one process, probably `init` - idle, but on Unix idle process does not have the name and hence the test might fail
This commit is contained in:
Klaudia Algiz 2018-04-30 13:09:16 -07:00 committed by Travis Plunk
parent 1f9e9d243d
commit bee98547e4

View file

@ -225,8 +225,8 @@ Describe "Select-Object DRT basic functionality" -Tags "CI" {
$results.Count | Should -Be 0
}
It "Select-Object with Start-Time In Idle Process should work"{
$results = Get-Process i* | Select-Object ProcessName
It "Select-Object with Start-Time In Idle Process should work" {
$results = Get-Process * | Select-Object ProcessName
$results.Count | Should -Not -Be 0
}