aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2016-12-07 14:01:51 +0100
committerJustin M. Keyes <justinkz@gmail.com>2016-12-07 17:22:37 +0100
commit933c873cae64d3840bb0539b51a983a240eeff28 (patch)
treebbfb82885565dc382721716f3d550a259852ad28 /test/functional/core
parenta1b0f594ea4d5f50ddd381d2586cfd28ff6db8e6 (diff)
downloadrneovim-933c873cae64d3840bb0539b51a983a240eeff28.tar.gz
rneovim-933c873cae64d3840bb0539b51a983a240eeff28.tar.bz2
rneovim-933c873cae64d3840bb0539b51a983a240eeff28.zip
test: Handle SIGHUP in tty-test fixture.
Closes #5727
Diffstat (limited to 'test/functional/core')
-rw-r--r--test/functional/core/job_spec.lua5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua
index 58594db8ac..9d24ba62db 100644
--- a/test/functional/core/job_spec.lua
+++ b/test/functional/core/job_spec.lua
@@ -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)