mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +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)
|
||||
|
||||
it('`yes` and is directly 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()
|
||||
it('`yes` and is interrupted with CTRL-C', function()
|
||||
feed(':call system("yes")<cr>')
|
||||
feed('<c-c>')
|
||||
screen:expect([[
|
||||
@@ -247,26 +227,6 @@ describe('systemlist()', function()
|
||||
]])
|
||||
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()
|
||||
feed(':call systemlist("yes | xargs")<cr>')
|
||||
feed('<c-c>')
|
||||
|
Reference in New Issue
Block a user