-
Notifications
You must be signed in to change notification settings - Fork 30k
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: check the different error code on IBM i #38159
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
landed in db9cf52 |
Refs: nodejs/node#38159 (comment) PR-URL: #3145 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Refs: #38159 (comment) PR-URL: #38675 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Refs: #38159 (comment) PR-URL: #38675 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Refs: #38159 (comment) PR-URL: #38675 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Richard Lau <rlau@redhat.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Refs: nodejs/node#38159 (comment) PR-URL: libuv#3145 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Jameson Nash <vtjnash@gmail.com>
Fixes: #36925