test: fix test-process-exec-argv flakiness
Checklist
-
tests and code linting passes -
the commit message follows commit guidelines
Affected core subsystem(s)
test
Description of change
Wait for the close
event before parsing the child stdout output.
Fixes: https://github.com/nodejs/node/issues/6480
I was able to reproduce the error reported in https://github.com/nodejs/node/issues/6480 in my OS X
box. This change fixed the issue.