test(core/job_spec): skip exit test if "sleep" command missing (#28137)

This commit is contained in:
zeertzjq 2024-04-01 06:48:14 +08:00 committed by GitHub
parent c4221df7b5
commit 1570cfb638
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1236,6 +1236,7 @@ describe('pty process teardown', function()
end) end)
it('does not prevent/delay exit. #4798 #4900', function() it('does not prevent/delay exit. #4798 #4900', function()
skip(fn.executable('sleep') == 0, 'missing "sleep" command')
-- Use a nested nvim (in :term) to test without --headless. -- Use a nested nvim (in :term) to test without --headless.
fn.termopen({ fn.termopen({
helpers.nvim_prog, helpers.nvim_prog,