| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,5 +55,3 @@ test-tls-env-extra-ca: SKIP | |||
| 55 | 55 | test-dgram-error-message-address: SKIP | |
| 56 | 56 | # https://github.com/nodejs/node/issues/36929 | |
| 57 | 57 | test-crypto-secure-heap: SKIP | |
| 58 | - # https://github.com/nodejs/node/issues/36925 | ||
| 59 | - test-fs-read-type: SKIP | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -118,7 +118,10 @@ fs.read(fd, | |||
| 118 | 118 | 2n ** 53n - 1n, | |
| 119 | 119 | common.mustCall((err) => { | |
| 120 | 120 | if (err) { | |
| 121 | - assert.strictEqual(err.code, 'EFBIG'); | ||
| 121 | + if (common.isIBMi) | ||
| 122 | + assert.strictEqual(err.errno, -127); | ||
| 123 | + else | ||
| 124 | + assert.strictEqual(err.code, 'EFBIG'); | ||
| 122 | 125 | } | |
| 123 | 126 | })); | |
| 124 | 127 | ||
@@ -239,5 +242,6 @@ try { | |||
| 239 | 242 | // On systems where max file size is below 2^53-1, we'd expect a EFBIG error. | |
| 240 | 243 | // This is not using `assert.throws` because the above call should not raise | |
| 241 | 244 | // any error on systems that allows file of that size. | |
| 242 | - if (err.code !== 'EFBIG') throw err; | ||
| 245 | + if (err.code !== 'EFBIG' && !(common.isIBMi && err.errno === -127)) | ||
| 246 | + throw err; | ||
| 243 | 247 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments