test: refactoring and cleanup on child-process tests
Commit 1 in this scratches an itch I've had for a while: it adds a common.debug()
to test/common/index.js
that uses util.debuglog()
as a way of avoiding use of console.log()
statements in tests that are not part of the test itself.
To enable the debug output while running tests, set the environment variable NODE_DEBUG=test
.
Commit 2 Makes a number of improvements to child process tests including use of the debuglog()
, more must calls, and use of ../common/countdown
where appropriate.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
documentation is changed or added -
commit message follows commit guidelines