aboutsummaryrefslogtreecommitdiff
path: root/test/functional/shell/viml_system_spec.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/shell/viml_system_spec.lua')
-rw-r--r--test/functional/shell/viml_system_spec.lua34
1 files changed, 33 insertions, 1 deletions
diff --git a/test/functional/shell/viml_system_spec.lua b/test/functional/shell/viml_system_spec.lua
index 85c055d3be..75e9de6aa9 100644
--- a/test/functional/shell/viml_system_spec.lua
+++ b/test/functional/shell/viml_system_spec.lua
@@ -79,6 +79,22 @@ describe('system()', function()
it('`yes` and is interrupted with CTRL-C', function()
feed(':call system("yes")<cr>')
+ screen:expect([[
+ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ^call system("yes") |
+ ]])
feed('<c-c>')
screen:expect([[
^ |
@@ -227,8 +243,24 @@ describe('systemlist()', function()
]])
end)
- it('`yes` and is a little bit later interrupted with CTRL-C', function()
+ it('`yes` and is interrupted with CTRL-C', function()
feed(':call systemlist("yes | xargs")<cr>')
+ screen:expect([[
+ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ~ |
+ ^call systemlist("yes | xargs") |
+ ]])
feed('<c-c>')
screen:expect([[
^ |