diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-11-01 00:11:12 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-11-01 17:17:07 +0100 |
commit | f5671c8614c2e0b75114fe31057efc387847fca7 (patch) | |
tree | 37b2f79b60589a56237effe4c93398db2cf71046 | |
parent | 8480b74010254a23768085796ef0518becce1df6 (diff) | |
download | rneovim-f5671c8614c2e0b75114fe31057efc387847fca7.tar.gz rneovim-f5671c8614c2e0b75114fe31057efc387847fca7.tar.bz2 rneovim-f5671c8614c2e0b75114fe31057efc387847fca7.zip |
win: test: SIGWINCH is noisy #7506
-rw-r--r-- | test/functional/core/job_spec.lua | 2 | ||||
-rw-r--r-- | test/functional/terminal/window_split_tab_spec.lua | 10 |
2 files changed, 11 insertions, 1 deletions
diff --git a/test/functional/core/job_spec.lua b/test/functional/core/job_spec.lua index f8488ca7a3..34168e10c2 100644 --- a/test/functional/core/job_spec.lua +++ b/test/functional/core/job_spec.lua @@ -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 diff --git a/test/functional/terminal/window_split_tab_spec.lua b/test/functional/terminal/window_split_tab_spec.lua index 714c2476ce..07cc8020a5 100644 --- a/test/functional/terminal/window_split_tab_spec.lua +++ b/test/functional/terminal/window_split_tab_spec.lua @@ -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 | |