aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-11-17 08:53:05 +0100
committerBjörn Linse <bjorn.linse@gmail.com>2016-11-17 15:13:45 +0100
commit1d4563771bcdaca0e6ec3eba1ca3ee6461d7afb5 (patch)
tree8526c2785d6bd60e9be469a650f486128be0300f /test
parent927e3e32d78460eb8031bda3304c9ea1f9ef855e (diff)
downloadrneovim-1d4563771bcdaca0e6ec3eba1ca3ee6461d7afb5.tar.gz
rneovim-1d4563771bcdaca0e6ec3eba1ca3ee6461d7afb5.tar.bz2
rneovim-1d4563771bcdaca0e6ec3eba1ca3ee6461d7afb5.zip
jobs: ensure calling jobclose() on a pty job sends SIGHUP. Closes #5619
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/job_spec.lua6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua
index 5872ebe8ee..58594db8ac 100644
--- a/test/functional/core/job_spec.lua
+++ b/test/functional/core/job_spec.lua
@@ -480,6 +480,12 @@ describe('jobs', function()
nvim('command', 'call jobresize(j, 10, 40)')
eq('rows: 40, cols: 10', next_chunk())
end)
+
+ it('calling jobclose()', function()
+ -- this should send SIGHUP to the process
+ nvim('command', 'call jobclose(j)')
+ eq({'notification', 'exit', {0, 1}}, next_msg())
+ end)
end)
end)