-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
test: check the different error code on IBM i #38159
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
Conversation
@@ -118,7 +118,10 @@ fs.read(fd, | |||
2n ** 53n - 1n, | |||
common.mustCall((err) => { | |||
if (err) { | |||
assert.strictEqual(err.code, 'EFBIG'); | |||
if (common.isIBMi) | |||
assert.strictEqual(err.errno, -127); |
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.
What error does 127 map to on IBM i? Should we try to map it in libuv?
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.
It is EOVERFLOW
$ grep 127 /usr/include/errno.h
#define EOVERFLOW 127 /* value too large to be stored in data type */
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.
What error does 127 map to on IBM i? Should we try to map it in libuv?
@cjihrig PR to add a mapping for EOVERFLOW
: libuv/libuv#3145
Fixes: #36925 PR-URL: #38159 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Darshan Sen <[email protected]> Reviewed-By: Richard Lau <[email protected]>
landed in db9cf52 |
Refs: nodejs/node#38159 (comment) PR-URL: #3145 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jameson Nash <[email protected]>
Refs: #38159 (comment) PR-URL: #38675 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Refs: #38159 (comment) PR-URL: #38675 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Refs: #38159 (comment) PR-URL: #38675 Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Trivikram Kamat <[email protected]>
Refs: nodejs/node#38159 (comment) PR-URL: libuv#3145 Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Jameson Nash <[email protected]>
Fixes: #36925