GeezerVison is showing github.com — test: disambiguate AIX and IBM i · nodejs/node@829eb99
File treeExpand file treeCollapse file tree Open diff view settings Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: test/abort/test-addon-uv-handle-leak.js +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -78,6 +78,7 @@ if (process.argv[2] === 'child') { | 78 | 78 |
| 79 | 79 | if (!(common.isFreeBSD || | 80 | 80 | common.isAIX || | | 81 | + common.isIBMi || | 81 | 82 | (common.isLinux && !isGlibc()) || | 82 | 83 | common.isWindows)) { | 83 | 84 | assert(stderr.includes('ExampleOwnerClass'), stderr); | |
Collapse file Copy file name to clipboardExpand all lines: test/common/index.js +6-3Lines changed: 6 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -123,7 +123,6 @@ if (process.argv.length === 2 && | 123 | 123 | } | 124 | 124 |
| 125 | 125 | const isWindows = process.platform === 'win32'; | 126 | | -const isAIX = process.platform === 'aix'; | 127 | 126 | const isSunOS = process.platform === 'sunos'; | 128 | 127 | const isFreeBSD = process.platform === 'freebsd'; | 129 | 128 | const isOpenBSD = process.platform === 'openbsd'; | @@ -274,7 +273,7 @@ function platformTimeout(ms) { | 274 | 273 | if (process.features.debug) | 275 | 274 | ms = multipliers.two * ms; | 276 | 275 |
| 277 | | - if (isAIX) | | 276 | + if (exports.isAIX || exports.isIBMi) | 278 | 277 | return multipliers.two * ms; // Default localhost speed is slower on AIX | 279 | 278 |
| 280 | 279 | if (isPi) | @@ -920,7 +919,6 @@ const common = { | 920 | 919 | hasQuic, | 921 | 920 | hasMultiLocalhost, | 922 | 921 | invalidArgTypeHelper, | 923 | | - isAIX, | 924 | 922 | isAlive, | 925 | 923 | isAsan, | 926 | 924 | isDumbTerminal, | @@ -991,7 +989,12 @@ const common = { | 991 | 989 | }, | 992 | 990 |
| 993 | 991 | // On IBMi, process.platform and os.platform() both return 'aix', | | 992 | + // when built with Python versions earlier than 3.9. | 994 | 993 | // It is not enough to differentiate between IBMi and real AIX system. | | 994 | + get isAIX() { | | 995 | + return require('os').type() === 'AIX'; | | 996 | + }, | | 997 | + | 995 | 998 | get isIBMi() { | 996 | 999 | return require('os').type() === 'OS400'; | 997 | 1000 | }, | |
Collapse file Copy file name to clipboardExpand all lines: test/known_issues/test-cwd-enoent-file.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 5 | 5 | const common = require('../common'); | 6 | 6 | const assert = require('assert'); | 7 | 7 |
| 8 | | -if (common.isSunOS || common.isWindows || common.isAIX) { | | 8 | +if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) { | 9 | 9 | // The current working directory cannot be removed on these platforms. | 10 | 10 | // Change this to common.skip() when this is no longer a known issue test. | 11 | 11 | assert.fail('cannot rmdir current working directory'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent-preload.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common'); | 3 | 3 | // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. | 4 | | -if (common.isSunOS || common.isWindows || common.isAIX) | | 4 | +if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) | 5 | 5 | common.skip('cannot rmdir current working directory'); | 6 | 6 | if (!common.isMainThread) | 7 | 7 | common.skip('process.chdir is not available in Workers'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent-repl.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common'); | 3 | 3 | // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. | 4 | | -if (common.isSunOS || common.isWindows || common.isAIX) | | 4 | +if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) | 5 | 5 | common.skip('cannot rmdir current working directory'); | 6 | 6 | if (!common.isMainThread) | 7 | 7 | common.skip('process.chdir is not available in Workers'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | 'use strict'; | 2 | 2 | const common = require('../common'); | 3 | 3 | // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. | 4 | | -if (common.isSunOS || common.isWindows || common.isAIX) | | 4 | +if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) | 5 | 5 | common.skip('cannot rmdir current working directory'); | 6 | 6 | if (!common.isMainThread) | 7 | 7 | common.skip('process.chdir is not available in Workers'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-readfile-pipe-large.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ const common = require('../common'); | 3 | 3 |
| 4 | 4 | // Simulate `cat readfile.js | node readfile.js` | 5 | 5 |
| 6 | | -if (common.isWindows || common.isAIX) | | 6 | +if (common.isWindows || common.isAIX || common.isIBMi) | 7 | 7 | common.skip(`No /dev/stdin on ${process.platform}.`); | 8 | 8 |
| 9 | 9 | const assert = require('assert'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-readfile-pipe.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -24,7 +24,7 @@ const common = require('../common'); | 24 | 24 |
| 25 | 25 | // Simulate `cat readfile.js | node readfile.js` | 26 | 26 |
| 27 | | -if (common.isWindows || common.isAIX) | | 27 | +if (common.isWindows || common.isAIX || common.isIBMi) | 28 | 28 | common.skip(`No /dev/stdin on ${process.platform}.`); | 29 | 29 |
| 30 | 30 | const assert = require('assert'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-readfilesync-pipe-large.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -3,7 +3,7 @@ const common = require('../common'); | 3 | 3 |
| 4 | 4 | // Simulate `cat readfile.js | node readfile.js` | 5 | 5 |
| 6 | | -if (common.isWindows || common.isAIX) | | 6 | +if (common.isWindows || common.isAIX || common.isIBMi) | 7 | 7 | common.skip(`No /dev/stdin on ${process.platform}.`); | 8 | 8 |
| 9 | 9 | const assert = require('assert'); | |
Collapse file Copy file name to clipboardExpand all lines: test/parallel/test-fs-realpath-pipe.js +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
| 2 | 2 |
| 3 | 3 | const common = require('../common'); | 4 | 4 |
| 5 | | -if (common.isWindows || common.isAIX) | | 5 | +if (common.isWindows || common.isAIX || common.isIBMi) | 6 | 6 | common.skip(`No /dev/stdin on ${process.platform}.`); | 7 | 7 |
| 8 | 8 | const assert = require('assert'); | |
|