aboutsummaryrefslogtreecommitdiff
path: root/test/functional/ui/output_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <jan.lazo@mail.utoronto.ca>2019-10-11 00:30:20 -0400
committerJustin M. Keyes <justinkz@gmail.com>2019-10-10 21:30:20 -0700
commita7fc2f3f64f05ffd2a97c8ccf2e5c74d905ac808 (patch)
treebde48b36336c865218f6ac0f8d1e3bba8a3dc03e /test/functional/ui/output_spec.lua
parentb772b86d2ba256a2c03ab701d00b322cf52560e0 (diff)
downloadrneovim-a7fc2f3f64f05ffd2a97c8ccf2e5c74d905ac808.tar.gz
rneovim-a7fc2f3f64f05ffd2a97c8ccf2e5c74d905ac808.tar.bz2
rneovim-a7fc2f3f64f05ffd2a97c8ccf2e5c74d905ac808.zip
test: "!:&" works with powershell #11201
Removed 'echo' alias because it does not behave like POSIX echo.
Diffstat (limited to 'test/functional/ui/output_spec.lua')
-rw-r--r--test/functional/ui/output_spec.lua16
1 files changed, 10 insertions, 6 deletions
diff --git a/test/functional/ui/output_spec.lua b/test/functional/ui/output_spec.lua
index c5d3e536ad..20413cb784 100644
--- a/test/functional/ui/output_spec.lua
+++ b/test/functional/ui/output_spec.lua
@@ -236,14 +236,18 @@ describe("shell command :!", function()
set_shell_powershell()
local screen = Screen.new(30, 4)
screen:attach()
- feed_command([[!'echo $a']])
- screen:expect{any='\necho %$a', timeout=10000}
- feed_command([[!$a = 1; echo '$a']])
+ feed_command([[!'Write-Output $a']])
+ screen:expect{any='\nWrite%-Output %$a', timeout=10000}
+ feed_command([[!$a = 1; Write-Output '$a']])
screen:expect{any='\n%$a', timeout=10000}
- feed_command([[!"echo $a"]])
- screen:expect{any='\necho', timeout=10000}
- feed_command([[!$a = 1; echo "$a"]])
+ feed_command([[!"Write-Output $a"]])
+ screen:expect{any='\nWrite%-Output', timeout=10000}
+ feed_command([[!$a = 1; Write-Output "$a"]])
screen:expect{any='\n1', timeout=10000}
+ feed_command(iswin()
+ and [[!& 'C:\\Windows\\system32\\cmd.exe' /c 'echo $a']]
+ or [[!& '/bin/sh' -c 'echo ''$a''']])
+ screen:expect{any='\n%$a', timeout=10000}
end)
end
end)