Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 34.2k
test: improve child_process test coverage#11278
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
Uh oh!
There was an error while loading. Please reload this page.
Conversation
Trott commented Feb 10, 2017
@nodejs/testing |
cjihrig commented Feb 10, 2017
I'm not sure that the changes to |
yosuke-furukawa commented Feb 10, 2017
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. |
cjihrig commented Feb 10, 2017
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 |
yosuke-furukawa commented Feb 11, 2017
we are checking to add console.log at the lines. functionkill(){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. |
cjihrig commented Feb 11, 2017 • edited
Loading Uh oh!
There was an error while loading. Please reload this page.
edited
Uh oh!
There was an error while loading. Please reload this page.
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 a27130bComparechiiia12 commented Feb 13, 2017
@cjihrig Thanks.I fixed it! |
yosuke-furukawa commented Feb 13, 2017
cjihrig commented Feb 16, 2017
@yosuke-furukawa I would drop the changes in The changes in The changes in |
a27130b to 2ea2378Comparechiiia12 commented Feb 17, 2017
@cjihrig Sounds reasonable.I remove it. |
fhinkel commented Mar 26, 2017
@chiiia12 Are you still working on this? |
fhinkel commented May 26, 2017
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