test: Remove unnecessary tests from viml_system_spec.lua

The `system` function is never executed with these tests because the ctrl+c is
queued with the input string that calls it(The `process_interrupts` function
will destroy all previous input when a ctrl+c is found).
This commit is contained in:
Thiago de Arruda
2015-02-12 14:26:08 -03:00
parent e974b00283
commit 291e15c60a

View File

@@ -77,27 +77,7 @@ describe('system()', function()
]]) ]])
end) end)
it('`yes` and is directly interrupted with CTRL-C', function() it('`yes` and is interrupted with CTRL-C', function()
feed(':call system("yes")<cr><c-c>')
screen:expect([[
^ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
Type :quit<Enter> to exit Vim |
]])
end)
it('`yes` and is a little bit later interrupted with CTRL-C', function()
feed(':call system("yes")<cr>') feed(':call system("yes")<cr>')
feed('<c-c>') feed('<c-c>')
screen:expect([[ screen:expect([[
@@ -247,26 +227,6 @@ describe('systemlist()', function()
]]) ]])
end) end)
it('`yes` and is directly interrupted with CTRL-C', function()
feed(':call systemlist("yes | xargs")<cr><c-c>')
screen:expect([[
^ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
~ |
Type :quit<Enter> to exit Vim |
]])
end)
it('`yes` and is a little bit later interrupted with CTRL-C', function() it('`yes` and is a little bit later interrupted with CTRL-C', function()
feed(':call systemlist("yes | xargs")<cr>') feed(':call systemlist("yes | xargs")<cr>')
feed('<c-c>') feed('<c-c>')