mirror of
https://github.com/aphrody-labs/PowerShell.git
synced 2026-10-17 12:45:47 +00:00
Adding pending to invokeitem tests due to windows bug
This commit is contained in:
1 parent
fd7a16778c
commit
7cac07f31c
1 file changed
+4
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user