diff --git a/test/powershell/Language/Scripting/NativeExecution/NativeCommandProcessor.Tests.ps1 b/test/powershell/Language/Scripting/NativeExecution/NativeCommandProcessor.Tests.ps1 index 8aa219d1fb9..5fe1afab68b 100644 --- a/test/powershell/Language/Scripting/NativeExecution/NativeCommandProcessor.Tests.ps1 +++ b/test/powershell/Language/Scripting/NativeExecution/NativeCommandProcessor.Tests.ps1 @@ -1,4 +1,4 @@ -Describe 'native commands lifecycle' -tags 'Feature' { +Describe 'native commands with pipeline' -tags 'Feature' { BeforeAll { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" @@ -23,6 +23,17 @@ Describe 'native commands lifecycle' -tags 'Feature' { $ps.Stop() $rs.ResetRunspaceState() } + + It "native | native | native should work fine" { + + if ($IsWindows) { + $result = @(ping.exe | findstr.exe count | findstr.exe ping) + $result[0] | Should Match "Usage: ping" + } else { + $result = @(ps aux | grep powershell | grep -v grep) + $result[0] | Should Match "powershell" + } + } } Describe "Native Command Processor" -tags "Feature" {