diff options
author | ckelsel <ckelsel@hotmail.com> | 2017-08-05 09:56:31 +0800 |
---|---|---|
committer | ckelsel <ckelsel@hotmail.com> | 2017-08-05 09:56:31 +0800 |
commit | 0743684199238006331032ca26a947c579c59a5e (patch) | |
tree | 1d5bb4969bcf901e9d1ecd8472856f9c93883c66 /test | |
parent | 9b3ed62b5a841c24f798f1fcc4adb3cfe7667b5b (diff) | |
parent | 37dd5ded7c74d70358ab0539d6ed978816b778f5 (diff) | |
download | rneovim-0743684199238006331032ca26a947c579c59a5e.tar.gz rneovim-0743684199238006331032ca26a947c579c59a5e.tar.bz2 rneovim-0743684199238006331032ca26a947c579c59a5e.zip |
Merge remote-tracking branch 'upstream/master'
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/core/job_spec.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index b98169b067..54e56f7f41 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -9,6 +9,7 @@ local command = helpers.command local wait = helpers.wait local iswin = helpers.iswin local get_pathsep = helpers.get_pathsep +local nvim_set = helpers.nvim_set local Screen = require('test.functional.ui.screen') describe('jobs', function() @@ -669,9 +670,10 @@ describe("pty process teardown", function() if helpers.pending_win32(pending) then return end -- Use a nested nvim (in :term) to test without --headless. feed_command(":terminal '"..helpers.nvim_prog + .."' -u NONE -i NONE --cmd '"..nvim_set.."' " -- Use :term again in the _nested_ nvim to get a PTY process. -- Use `sleep` to simulate a long-running child of the PTY. - .."' +terminal +'!(sleep 300 &)' +qa") + .."+terminal +'!(sleep 300 &)' +qa") -- Exiting should terminate all descendants (PTY, its children, ...). screen:expect([[ |