-
Notifications
You must be signed in to change notification settings - Fork 29.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
test: add coverage for spawnSync() killSignal #8960
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
if (process.argv[2] === 'child') { | ||
setInterval(() => {}, 1000); | ||
} else { | ||
const SIGUSR2 = process.binding('constants').os.signals.SIGUSR2; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You could DRY this as const { SIGUSR2 } = process.binding('constants').os.signals
. Minor thing though.
CI with the suggestion incorporated: https://ci.nodejs.org/job/node-test-pull-request/4445/ |
Related failures on Windows. |
dc1c87f
to
532e7f7
Compare
It looks like CI: https://ci.nodejs.org/job/node-test-pull-request/4447/. The only failures are now unrelated. |
This commit adds a test for the killSignal option to spawnSync(), and the other sync child process functions by extension. PR-URL: nodejs#8960 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This commit adds a test for the killSignal option to spawnSync(), and the other sync child process functions by extension. PR-URL: #8960 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This commit adds a test for the killSignal option to spawnSync(), and the other sync child process functions by extension. PR-URL: #8960 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
This commit adds a test for the killSignal option to spawnSync(), and the other sync child process functions by extension. PR-URL: #8960 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]>
Checklist
make -j8 test
(UNIX), orvcbuild test nosign
(Windows) passesAffected core subsystem(s)
test
Description of change
This commit adds a test for the
killSignal
option tospawnSync()
, and the other sync child process functions by extension.This was previously untested according to https://node-core-coverage.addaleax.net/