windows: ok(#children >= 4 and #children <= 5)

This commit is contained in:
Daniel Hahler
2019-08-15 20:38:03 +02:00
committed by erw7
parent 6261d2658f
commit ae60172106

View File

@@ -776,7 +776,13 @@ describe('jobs', function()
local children
retry(nil, nil, function()
children = meths.get_proc_children(ppid)
eq((iswin() and 4 or 3), #children)
if iswin() then
-- On Windows there is conhost.exe always,
-- and e.g. vctip.exe might appear. #10783
ok(#children >= 4 and #children <= 5)
else
eq(3, #children)
end
end)
-- Assert that nvim_get_proc() sees the children.
for _, child_pid in ipairs(children) do