aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThiago de Arruda <tpadilha84@gmail.com>2015-02-12 14:26:08 -0300
committerThiago de Arruda <tpadilha84@gmail.com>2015-02-16 23:17:38 -0300
commit291e15c60a891bfcff42d244e1ababd3e44cb84f (patch)
tree6c545d6a3a2762b095b5b902dc54a7caad060164
parente974b002833ba28ea69bc0969e21926e4e7d301f (diff)
downloadrneovim-291e15c60a891bfcff42d244e1ababd3e44cb84f.tar.gz
rneovim-291e15c60a891bfcff42d244e1ababd3e44cb84f.tar.bz2
rneovim-291e15c60a891bfcff42d244e1ababd3e44cb84f.zip
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).
-rw-r--r--test/functional/shell/viml_system_spec.lua42
1 files changed, 1 insertions, 41 deletions
diff --git a/test/functional/shell/viml_system_spec.lua b/test/functional/shell/viml_system_spec.lua
index b35f070159..85c055d3be 100644
--- a/test/functional/shell/viml_system_spec.lua
+++ b/test/functional/shell/viml_system_spec.lua
@@ -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>')