aboutsummaryrefslogtreecommitdiff
path: root/test/functional/eval/system_spec.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-02-20 00:13:58 +0100
committerGitHub <noreply@github.com>2018-02-20 00:13:58 +0100
commite215b6cb854626e728ef5c4045945962364e5b7d (patch)
treec7bc010ec66d30ea798cf419f1084178e24e2417 /test/functional/eval/system_spec.lua
parente177c186e40e96b70ccdb92f90b6184ab58890a1 (diff)
parent7fa69fb288d9fcf66c2fe504d760cc7a23da7256 (diff)
downloadrneovim-e215b6cb854626e728ef5c4045945962364e5b7d.tar.gz
rneovim-e215b6cb854626e728ef5c4045945962364e5b7d.tar.bz2
rneovim-e215b6cb854626e728ef5c4045945962364e5b7d.zip
Merge #7412 'win: enable more tests'
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([[
^ |