mirror of
https://github.com/neovim/neovim.git
synced 2025-02-25 18:55:25 -06:00
Merge PR #2032 'Some test fixes'
This commit is contained in:
commit
486d2e944d
@ -96,6 +96,8 @@ describe('72', function()
|
||||
end)
|
||||
|
||||
teardown(function()
|
||||
os.remove('.Xtestfile.un~')
|
||||
os.remove('Xtestfile')
|
||||
os.remove('test.out')
|
||||
os.remove('.Xtestfile.un~')
|
||||
end)
|
||||
end)
|
||||
|
@ -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([[
|
||||
^ |
|
||||
|
@ -135,7 +135,7 @@ Screen.colors = colors
|
||||
|
||||
function Screen.debug(command)
|
||||
if not command then
|
||||
command = 'pynvim -n -g -c '
|
||||
command = 'pynvim -n -c '
|
||||
end
|
||||
command = command .. request('vim_eval', '$NVIM_LISTEN_ADDRESS')
|
||||
if debug_screen then
|
||||
|
Loading…
Reference in New Issue
Block a user