test: add reasons to some skipped tests (#37632)

This commit is contained in:
zeertzjq
2026-01-31 08:25:48 +08:00
committed by GitHub
parent ed4c549ea2
commit 1e6c4ea896
5 changed files with 6 additions and 6 deletions

View File

@@ -92,7 +92,7 @@ describe('autocmd TermClose', function()
end)
it('kills job trapping SIGTERM', function()
skip(is_os('win'))
skip(is_os('win'), 'N/A for Windows')
api.nvim_set_option_value('shell', 'sh', {})
api.nvim_set_option_value('shellcmdflag', '-c', {})
command(
@@ -118,7 +118,7 @@ describe('autocmd TermClose', function()
end)
it('kills PTY job trapping SIGHUP and SIGTERM', function()
skip(is_os('win'))
skip(is_os('win'), 'N/A for Windows')
api.nvim_set_option_value('shell', 'sh', {})
api.nvim_set_option_value('shellcmdflag', '-c', {})
command(

View File

@@ -294,7 +294,7 @@ describe('getcwd()', function()
end)
it('returns empty string if working directory does not exist', function()
skip(is_os('win'))
skip(is_os('win'), 'N/A for Windows')
command('cd ' .. directories.global)
command("call delete('../" .. directories.global .. "', 'd')")
eq('', n.eval('getcwd()'))

View File

@@ -114,7 +114,7 @@ describe("preserve and (R)ecover with custom 'directory'", function()
end)
it('killing TUI process without :preserve #22096', function()
t.skip(t.is_os('win'))
t.skip(t.is_os('win'), 'n.connect() hangs on Windows')
local screen0 = Screen.new()
local child_server = new_pipename()
fn.jobstart({ nvim_prog, '-u', 'NONE', '-i', 'NONE', '--listen', child_server }, {

View File

@@ -284,7 +284,7 @@ describe('--embed UI', function()
end)
it('closing stdio with another remote UI does not leak memory #36392', function()
t.skip(t.is_os('win')) -- n.connect() hangs on Windows
t.skip(t.is_os('win'), 'n.connect() hangs on Windows')
clear({ args_rm = { '--headless' } })
Screen.new()
eq(1, #api.nvim_list_uis())

View File

@@ -3113,7 +3113,7 @@ aliquip ex ea commodo consequat.]]
end)
it('pager works in headless mode with UI attached', function()
skip(is_os('win'))
skip(is_os('win'), 'n.connect() hangs on Windows')
clear()
local child_server = assert(n.new_pipename())
fn.jobstart({ nvim_prog, '--clean', '--headless', '--listen', child_server })