aboutsummaryrefslogtreecommitdiff
path: root/test/functional/core/job_spec.lua
diff options
context:
space:
mode:
authorDaniel Hahler <git@thequod.de>2019-07-30 14:16:50 +0200
committerDaniel Hahler <git@thequod.de>2019-07-30 18:41:38 +0200
commit6e01ed6a4c859ff915b42422622f1ba3cc80efd5 (patch)
treef1716db148fdb8201723e5442fe2fc309e78f568 /test/functional/core/job_spec.lua
parentda87b678125962076ce5627b1a32181284f2fe5d (diff)
downloadrneovim-6e01ed6a4c859ff915b42422622f1ba3cc80efd5.tar.gz
rneovim-6e01ed6a4c859ff915b42422622f1ba3cc80efd5.tar.bz2
rneovim-6e01ed6a4c859ff915b42422622f1ba3cc80efd5.zip
vim-patch:8.1.0572: stopping a job does not work properly on OpenBSD
Problem: Stopping a job does not work properly on OpenBSD. Solution: Do not use getpgid() to check the process group of the job processs ID, always pass the negative process ID to kill(). (George Koehler, closes vim/vim#3656) https://github.com/vim/vim/commit/76ab4fd61901090e6af3451ca6c5ca0fc370571f Ref: https://github.com/neovim/neovim/issues/9704 Ref: https://github.com/neovim/neovim/issues/10182#issuecomment-514450069 Closes https://github.com/neovim/neovim/pull/10660
Diffstat (limited to 'test/functional/core/job_spec.lua')
-rw-r--r--test/functional/core/job_spec.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua
index cdff035c63..1bcf4b2891 100644
--- a/test/functional/core/job_spec.lua
+++ b/test/functional/core/job_spec.lua
@@ -797,7 +797,7 @@ describe('jobs', function()
eq(ppid, info.ppid)
end
-- Kill the root of the tree.
- funcs.jobstop(j)
+ eq(1, funcs.jobstop(j))
-- Assert that the children were killed.
retry(nil, nil, function()
for _, child_pid in ipairs(children) do