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

Depending on the version of Windows, conhost.exe may not be included in
the child process.
This commit is contained in:
erw7 2019-08-16 13:34:53 +09:00
parent ae60172106
commit e82fc20f23

View File

@ -777,9 +777,9 @@ describe('jobs', function()
retry(nil, nil, function()
children = meths.get_proc_children(ppid)
if iswin() then
-- On Windows there is conhost.exe always,
-- and e.g. vctip.exe might appear. #10783
ok(#children >= 4 and #children <= 5)
-- On Windows conhost.exe may exist, and
-- e.g. vctip.exe might appear. #10783
ok(#children >= 3 and #children <= 5)
else
eq(3, #children)
end