test: add coverage for vm's breakOnSigint option
The breakOnSigint
option follows different code paths, depending on the number of listeners for SIGINT
. This commit updates the existing test to vary the number of SIGINT
handlers.
This should get code coverage on lib/vm.js
to 100%.
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
tests and/or benchmarks are included -
commit message follows commit guidelines
Affected core subsystem(s)
test