-
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: improve child_process test coverage #11278
Conversation
@nodejs/testing |
I'm not sure that the changes to |
Currently, we are getting started to learn how to contribute node.js core in my company. I am teaching how-to-contribute and suggest contribution point. So I answered about that. According to child_process coverage report ,
so we just add those 3 tests. |
I don't think the tests in this PR address that. I have a PR for that in #11038. I haven't landed it yet because I think there is an issue somewhere with killing child processes on Windows.
Again, I don't think this PR addresses that. The changes to |
we are checking to add console.log at the lines. function kill() {
if (child.stdout)
child.stdout.destroy();
if (child.stderr)
child.stderr.destroy();
killed = true;
try {
child.kill(options.killSignal);
} catch (e) {
console.log(`caught on the kill signal: ${options.killSignal} `, e);
ex = e;
exithandler();
}
} we have got the message like that. so I think we can pass the blocks.
However, your PR will also reach here. we don't have an opinion which PR is better. if your PR will be merged before this PR, we will remove this test.
hmm. this one is our failure, we need to fix about that. We will fix this soon. thank you. |
Apologies. There is currently no input validation on the kill signal for EDIT: #10423 is relevant to that test, as it would eliminate the code coverage. |
6dd71eb
to
a27130b
Compare
@cjihrig Thanks.I fixed it! |
@yosuke-furukawa I would drop the changes in The changes in The changes in |
a27130b
to
2ea2378
Compare
@cjihrig Sounds reasonable.I remove it. |
@chiiia12 Are you still working on this? |
There hasn't been any activity here. I'm closing this. Feel free to reopen (or ping a collaborator). |
This PR improves child_process coverage (maybe cover statement 100%).
This is my first contribution, please review.
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
N/A