aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/system_spec.lua
diff options
context:
space:
mode:
authorJan Edmund Lazo <janedmundlazo@hotmail.com>2018-02-17 02:25:51 -0500
committerJan Edmund Lazo <janedmundlazo@hotmail.com>2018-02-19 07:10:46 -0500
commit795da343bbf99c4b77d10cd5035c29df23f113ae (patch)
tree68f953578a25af6ce4b9333533557db6548137c9 /test/functional/eval/system_spec.lua
parent07dfe0f5ea31521679926b7aeacde5e3944246ea (diff)
downloadrneovim-795da343bbf99c4b77d10cd5035c29df23f113ae.tar.gz
rneovim-795da343bbf99c4b77d10cd5035c29df23f113ae.tar.bz2
rneovim-795da343bbf99c4b77d10cd5035c29df23f113ae.zip
test: win: emulate yes with for loop
Diffstat (limited to 'test/functional/eval/system_spec.lua')
-rw-r--r--test/functional/eval/system_spec.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/test/functional/eval/system_spec.lua b/test/functional/eval/system_spec.lua
index 7fe79d4351..446afefb59 100644
--- a/test/functional/eval/system_spec.lua
+++ b/test/functional/eval/system_spec.lua
@@ -188,8 +188,9 @@ describe('system()', function()
end)
it('`yes` and is interrupted with CTRL-C', function()
- if helpers.pending_win32(pending) then return end
- feed(':call system("yes")<cr>')
+ feed(':call system("' .. (iswin()
+ and 'for /L %I in (1,0,2) do @echo y'
+ or 'yes') .. '")<cr>')
screen:expect([[
|
~ |
@@ -204,8 +205,11 @@ describe('system()', function()
~ |
~ |
~ |
- :call system("yes") |
- ]])
+]] .. (iswin()
+ and [[
+ :call system("for /L %I in (1,0,2) do @echo y") |]]
+ or [[
+ :call system("yes") |]]))
feed('<c-c>')
screen:expect([[
^ |