-
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
src: fix winapi_strerror error string #55207
src: fix winapi_strerror error string #55207
Conversation
test/parallel/test-print-GH-23191.js
Outdated
@@ -0,0 +1,43 @@ | |||
// Copyright Joyent, Inc. and other Node contributors. |
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.
We don't add the copyright header in new tests.
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.
Thanks. Fixed it.
95c8b00
to
565a983
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #55207 +/- ##
==========================================
+ Coverage 88.07% 88.41% +0.34%
==========================================
Files 652 652
Lines 183546 186838 +3292
Branches 35859 36060 +201
==========================================
+ Hits 161649 165198 +3549
+ Misses 15147 14891 -256
+ Partials 6750 6749 -1
|
test/parallel/test-print-GH-23191.js
Outdated
if (common.isWindows) { | ||
testDebugPrint().then(common.mustCall()); | ||
} |
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.
Using common.skip is preferred
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.
Thank you. Fixed it.
565a983
to
d8c6d70
Compare
Can you use a more descriptive name for the test file? We renamed many test-xxx-gh-xxx.js in the past. |
test/parallel/test-print-GH-23191.js
Outdated
|
||
const cp = child.spawn('pwd'); | ||
|
||
cp.on('exit', common.mustCall(function(code) { |
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.
cp.on('exit', common.mustCall(function(code) { | |
cp.on('exit', common.mustCall(function() { |
Or add an assertion for it.
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.
Thank you. Fixed it.
d8c6d70
to
b1f1213
Compare
Landed in 51d8146 |
Fixes: nodejs#23191 PR-URL: nodejs#55207 Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This fixes the bug in printing the error messages when an exception is thrown on Windows.
Fixes: #23191