diff --git a/test/powershell/Invoke-Item.Tests.ps1 b/test/powershell/Invoke-Item.Tests.ps1 index 05e1013cd..9562284c4 100644 --- a/test/powershell/Invoke-Item.Tests.ps1 +++ b/test/powershell/Invoke-Item.Tests.ps1 @@ -61,11 +61,13 @@ Describe "Invoke-Item" { $powershell = Join-Path -Path $PsHome -ChildPath "powershell" } - It "Should call the function without error" { +#Both tests are pending due to a bug in Invoke-Item on Windows. Fixed for Linux + + It "Should call the function without error" -Pending { { New-Item -Name $testfile -Path $tmpDirectory -ItemType file } | Should Not Throw } - It "Should invoke a text file without error" { + It "Should invoke a text file without error" -Pending { $debugfn = NewProcessStartInfo "-noprofile ""``Invoke-Item $FullyQualifiedFile`n" -RedirectStdIn $process = RunPowerShell $debugfn EnsureChildHasExited $process