win: test: SIGWINCH is noisy #7506

This commit is contained in:
Justin M. Keyes 2018-11-01 00:11:12 +01:00
parent 8480b74010
commit f5671c8614
2 changed files with 11 additions and 1 deletions

View File

@ -731,7 +731,7 @@ describe('jobs', function()
local children
retry(nil, nil, function()
children = meths.get_proc_children(ppid)
eq(3, #children)
eq((iswin() and 4 or 3), #children)
end)
-- Assert that nvim_get_proc() sees the children.
for _, child_pid in ipairs(children) do

View File

@ -6,6 +6,7 @@ local feed_command = helpers.feed_command
local command = helpers.command
local eq = helpers.eq
local eval = helpers.eval
local iswin = helpers.iswin
describe('terminal', function()
local screen
@ -68,6 +69,15 @@ describe('terminal', function()
it('forwards resize request to the program', function()
feed([[<C-\><C-N>:]]) -- Go to cmdline-mode, so cursor is at bottom.
screen:try_resize(screen._width - 3, screen._height - 2)
if iswin() then
-- win: less-precise test, SIGWINCH is noisy there. #7506
screen:expect{any='rows: 7, cols: 47'}
screen:try_resize(screen._width - 6, screen._height - 3)
screen:expect{any='rows: 4, cols: 41'}
return
end
screen:expect([[
tty ready |
rows: 7, cols: 47 |