aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBjörn Linse <bjorn.linse@gmail.com>2016-11-17 18:40:59 +0100
committerGitHub <noreply@github.com>2016-11-17 18:40:59 +0100
commitacbce46782c4e948e7f6a79bbeb58aac62c4c9ab (patch)
tree3d97a2ee3c4c3bedd081d78752565dbfa4280e62 /test
parentc3a7a94a12ba9ee772deac14fe512c84b9febe69 (diff)
parent1d4563771bcdaca0e6ec3eba1ca3ee6461d7afb5 (diff)
downloadrneovim-acbce46782c4e948e7f6a79bbeb58aac62c4c9ab.tar.gz
rneovim-acbce46782c4e948e7f6a79bbeb58aac62c4c9ab.tar.bz2
rneovim-acbce46782c4e948e7f6a79bbeb58aac62c4c9ab.zip
Merge pull request #5624 from bfredl/jobcloseterm
jobs: ensure calling jobclose() on a pty job sends SIGHUP
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)