| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 2aab93e commit 9c9138f
29 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -10,6 +10,9 @@ const fs = require('fs'); | |||
| 10 | 10 | if (!common.isMainThread) | |
| 11 | 11 | common.skip('Worker bootstrapping works differently -> different async IDs'); | |
| 12 | 12 | ||
| 13 | + if (common.isIBMi) | ||
| 14 | + common.skip('IBMi does not suppport fs.watch()'); | ||
| 15 | + | ||
| 13 | 16 | const hooks = initHooks(); | |
| 14 | 17 | ||
| 15 | 18 | hooks.enable(); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -43,3 +43,12 @@ test-async-hooks-http-parser-destroy: PASS,FLAKY | |||
| 43 | 43 | [$system==freebsd] | |
| 44 | 44 | ||
| 45 | 45 | [$system==aix] | |
| 46 | + | ||
| 47 | + [$system==ibmi] | ||
| 48 | + # https://github.com/nodejs/node/pull/30819 | ||
| 49 | + test-child-process-fork-net-server: SKIP | ||
| 50 | + test-cli-node-options: SKIP | ||
| 51 | + test-cluster-shared-leak: SKIP | ||
| 52 | + test-http-writable-true-after-close: SKIP | ||
| 53 | + test-http2-connect-method: SKIP | ||
| 54 | + test-net-error-twice: SKIP | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -85,7 +85,8 @@ dns.lookup('::1', common.mustCall((error, result, addressType) => { | |||
| 85 | 85 | // Windows doesn't usually have an entry for localhost 127.0.0.1 in | |
| 86 | 86 | // C:\Windows\System32\drivers\etc\hosts | |
| 87 | 87 | // so we disable this test on Windows. | |
| 88 | - if (!common.isWindows) { | ||
| 88 | + // IBMi reports `ENOTFOUND` when get hostname by address 127.0.0.1 | ||
| 89 | + if (!common.isWindows && !common.isIBMi) { | ||
| 89 | 90 | dns.reverse('127.0.0.1', common.mustCall(function(error, domains) { | |
| 90 | 91 | assert.ifError(error); | |
| 91 | 92 | assert.ok(Array.isArray(domains)); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,7 +3,8 @@ const common = require('../common'); | |||
| 3 | 3 | const assert = require('assert'); | |
| 4 | 4 | const spawnSync = require('child_process').spawnSync; | |
| 5 | 5 | const signals = require('os').constants.signals; | |
| 6 | - const rootUser = common.isWindows ? false : process.getuid() === 0; | ||
| 6 | + const rootUser = common.isWindows ? false : | ||
| 7 | + common.isIBMi ? true : process.getuid() === 0; | ||
| 7 | 8 | ||
| 8 | 9 | const invalidArgTypeError = common.expectsError( | |
| 9 | 10 | { code: 'ERR_INVALID_ARG_TYPE', type: TypeError }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -4,6 +4,9 @@ const assert = require('assert'); | |||
| 4 | 4 | const spawn = require('child_process').spawn; | |
| 5 | 5 | const expectedError = common.isWindows ? /\bENOTSUP\b/ : /\bEPERM\b/; | |
| 6 | 6 | ||
| 7 | + if (common.isIBMi) | ||
| 8 | + common.skip('IBMi has a different behavior'); | ||
| 9 | + | ||
| 7 | 10 | if (common.isWindows || process.getuid() !== 0) { | |
| 8 | 11 | assert.throws(() => { | |
| 9 | 12 | spawn('echo', ['fhqwhgads'], { uid: 0 }); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -26,6 +26,9 @@ const common = require('../common'); | |||
| 26 | 26 | if (common.isOSX) | |
| 27 | 27 | common.skip('macOS may allow ordinary processes to use any port'); | |
| 28 | 28 | ||
| 29 | + if (common.isIBMi) | ||
| 30 | + common.skip('IBMi may allow ordinary processes to use any port'); | ||
| 31 | + | ||
| 29 | 32 | if (common.isWindows) | |
| 30 | 33 | common.skip('not reliable on Windows'); | |
| 31 | 34 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,9 @@ const common = require('../common'); | |||
| 8 | 8 | if (!common.isWindows && process.getuid() === 0) | |
| 9 | 9 | common.skip('as this test should not be run as `root`'); | |
| 10 | 10 | ||
| 11 | + if (common.isIBMi) | ||
| 12 | + common.skip('IBMi has a different access permission mechanism'); | ||
| 13 | + | ||
| 11 | 14 | const assert = require('assert'); | |
| 12 | 15 | const fs = require('fs'); | |
| 13 | 16 | const path = require('path'); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,6 +8,9 @@ const common = require('../common'); | |||
| 8 | 8 | if (!common.isWindows && process.getuid() === 0) | |
| 9 | 9 | common.skip('as this test should not be run as `root`'); | |
| 10 | 10 | ||
| 11 | + if (common.isIBMi) | ||
| 12 | + common.skip('IBMi has a different access permission mechanism'); | ||
| 13 | + | ||
| 11 | 14 | const tmpdir = require('../common/tmpdir'); | |
| 12 | 15 | tmpdir.refresh(); | |
| 13 | 16 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -46,7 +46,7 @@ if (common.canCreateSymLink()) { | |||
| 46 | 46 | fs.appendFile(fileName, 'ABCD', options, common.mustCall(errHandler)); | |
| 47 | 47 | } | |
| 48 | 48 | ||
| 49 | - { | ||
| 49 | + if (!common.isIBMi) { // IBMi does not suppport fs.watch() | ||
| 50 | 50 | const watch = fs.watch(__filename, options, common.mustNotCall()); | |
| 51 | 51 | watch.close(); | |
| 52 | 52 | } | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -144,8 +144,9 @@ function runTests(iter) { | |||
| 144 | 144 | const path = `${tmpdir.path}/test-utimes-precision`; | |
| 145 | 145 | fs.writeFileSync(path, ''); | |
| 146 | 146 | ||
| 147 | - // Test Y2K38 for all platforms [except 'arm', 'OpenBSD' and 'SunOS'] | ||
| 148 | - if (!process.arch.includes('arm') && !common.isOpenBSD && !common.isSunOS) { | ||
| 147 | + // Test Y2K38 for all platforms [except 'arm', 'OpenBSD', 'SunOS' and 'IBMi'] | ||
| 148 | + if (!process.arch.includes('arm') && | ||
| 149 | + !common.isOpenBSD && !common.isSunOS && !common.isIBMi) { | ||
| 149 | 150 | const Y2K38_mtime = 2 ** 31; | |
| 150 | 151 | fs.utimesSync(path, Y2K38_mtime, Y2K38_mtime); | |
| 151 | 152 | const Y2K38_stats = fs.statSync(path); | |
| Back | FazBrowse Home | New Git URL |
0 commit comments