From 336f7d5b75f8a982da5d30ed217321024a178e10 Mon Sep 17 00:00:00 2001 From: kalgiz Date: Thu, 26 Apr 2018 10:10:50 -0700 Subject: [PATCH 1/2] Skip the test for Linux when there is lookup for process_name = idle since idle process doesn't have a name specified on Unix. --- .../Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 index b1d44da530f..6d2cb0e864e 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 @@ -225,7 +225,7 @@ Describe "Select-Object DRT basic functionality" -Tags "CI" { $results.Count | Should -Be 0 } - It "Select-Object with Start-Time In Idle Process should work"{ + It "Select-Object with Start-Time In Idle Process should work" -Skip:(!$IsWindows) { $results = Get-Process i* | Select-Object ProcessName $results.Count | Should -Not -Be 0 } From e2d14b98089f412b1145c321781bc90709b6b805 Mon Sep 17 00:00:00 2001 From: kalgiz Date: Thu, 26 Apr 2018 16:38:52 -0700 Subject: [PATCH 2/2] Code fix --- .../Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 index 6d2cb0e864e..79849cc4db4 100644 --- a/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 +++ b/test/powershell/Modules/Microsoft.PowerShell.Utility/Select-Object.Tests.ps1 @@ -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" -Skip:(!$IsWindows) { - $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 }