aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
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)