-
Notifications
You must be signed in to change notification settings - Fork 29.7k
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: fix too optimistic guess in setproctitle #12792
Conversation
|
@Fishrock123 Actually, the |
Ah sorry, my bad. |
That's confusing. Perhaps it's worth changing the message? |
@jasnell Do you mean commit message? What would you advise? |
No, the message on the assert error |
What message would you add? |
That's the default message from |
Landed in f971916 |
PR-URL: #12792 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: nodejs#12792 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
Should land with #13072 |
PR-URL: nodejs#12792 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
PR-URL: #12792 Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
Checklist
make -j4 test
(UNIX), orvcbuild test
(Windows) passesAffected core subsystem(s)
test, process
test/parallel/test-setproctitle.js
assumes thatprocess.title
can't betest
before the test changes it. However, if this test is launched as a child several times,process.title
is saved in the parent on Windows and is shared with childs.I've found this issue running tests with some script with different options. A reduced example (edit the path to reproduce):
Before this PR:
After this PR:
It seems this better be fixed to prevent such issues with various test approaches to test base.