aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2018-11-01 20:42:20 +0100
committerGitHub <noreply@github.com>2018-11-01 20:42:20 +0100
commitc45a859171090746c8b81f183474c22e489b8ad0 (patch)
tree5f84ed4da4d3f70155fbfeb208f30330ae80c667 /test
parentf1b67c3453c6ac3e6e6cf606898eb98704bd4d40 (diff)
parentf5671c8614c2e0b75114fe31057efc387847fca7 (diff)
downloadrneovim-c45a859171090746c8b81f183474c22e489b8ad0.tar.gz
rneovim-c45a859171090746c8b81f183474c22e489b8ad0.tar.bz2
rneovim-c45a859171090746c8b81f183474c22e489b8ad0.zip
Merge #7506 'deps: update libuv'
Diffstat (limited to 'test')
-rw-r--r--test/functional/core/job_spec.lua2
-rw-r--r--test/functional/terminal/window_split_tab_spec.lua10
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 |