From 1d4563771bcdaca0e6ec3eba1ca3ee6461d7afb5 Mon Sep 17 00:00:00 2001 From: Björn Linse Date: Thu, 17 Nov 2016 08:53:05 +0100 Subject: jobs: ensure calling jobclose() on a pty job sends SIGHUP. Closes #5619 --- test/functional/core/job_spec.lua | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'test') 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) -- cgit