mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 08:48:16 +00:00
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:
@@ -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>')
|
||||||
|
Reference in New Issue
Block a user