test: Handle SIGHUP in tty-test fixture.

Closes #5727
This commit is contained in:
Justin M. Keyes
2016-12-07 14:01:51 +01:00
parent a1b0f594ea
commit 933c873cae
2 changed files with 21 additions and 8 deletions

View File

@@ -481,10 +481,9 @@ describe('jobs', function()
eq('rows: 40, cols: 10', next_chunk())
end)
it('calling jobclose()', function()
-- this should send SIGHUP to the process
it('jobclose() sends SIGHUP', function()
nvim('command', 'call jobclose(j)')
eq({'notification', 'exit', {0, 1}}, next_msg())
eq({'notification', 'exit', {0, 42}}, next_msg())
end)
end)
end)