mirror of
https://github.com/neovim/neovim.git
synced 2025-10-26 12:27:24 +00:00
jobs: ensure calling jobclose() on a pty job sends SIGHUP. Closes #5619
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user