GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — test: disambiguate AIX and IBM i · nodejs/node@829eb99

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • test
    • abort
      • test-addon-uv-handle-leak.js
    • common
      • index.js
    • known_issues
      • test-cwd-enoent-file.js
    • parallel
      • test-cwd-enoent-preload.js
      • test-cwd-enoent-repl.js
      • test-cwd-enoent.js
      • test-fs-readfile-pipe-large.js
      • test-fs-readfile-pipe.js
      • test-fs-readfilesync-pipe-large.js
      • test-fs-realpath-pipe.js
      • test-fs-utimes.js
      • test-os.js
      • test-process-dlopen-error-message-crash.js
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎test/abort/test-addon-uv-handle-leak.js‎

Copy file name to clipboardExpand all lines: test/abort/test-addon-uv-handle-leak.js
+1Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,7 @@ if (process.argv[2] === 'child') {
7878

7979
if (!(common.isFreeBSD ||
8080
common.isAIX ||
81+
common.isIBMi ||
8182
(common.isLinux && !isGlibc()) ||
8283
common.isWindows)) {
8384
assert(stderr.includes('ExampleOwnerClass'), stderr);
Collapse file

‎test/common/index.js‎

Copy file name to clipboardExpand all lines: test/common/index.js
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,6 @@ if (process.argv.length === 2 &&
123123
}
124124

125125
const isWindows = process.platform === 'win32';
126-
const isAIX = process.platform === 'aix';
127126
const isSunOS = process.platform === 'sunos';
128127
const isFreeBSD = process.platform === 'freebsd';
129128
const isOpenBSD = process.platform === 'openbsd';
@@ -274,7 +273,7 @@ function platformTimeout(ms) {
274273
if (process.features.debug)
275274
ms = multipliers.two * ms;
276275

277-
if (isAIX)
276+
if (exports.isAIX || exports.isIBMi)
278277
return multipliers.two * ms; // Default localhost speed is slower on AIX
279278

280279
if (isPi)
@@ -920,7 +919,6 @@ const common = {
920919
hasQuic,
921920
hasMultiLocalhost,
922921
invalidArgTypeHelper,
923-
isAIX,
924922
isAlive,
925923
isAsan,
926924
isDumbTerminal,
@@ -991,7 +989,12 @@ const common = {
991989
},
992990

993991
// On IBMi, process.platform and os.platform() both return 'aix',
992+
// when built with Python versions earlier than 3.9.
994993
// It is not enough to differentiate between IBMi and real AIX system.
994+
get isAIX() {
995+
return require('os').type() === 'AIX';
996+
},
997+
995998
get isIBMi() {
996999
return require('os').type() === 'OS400';
9971000
},
Collapse file

‎test/known_issues/test-cwd-enoent-file.js‎

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 numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
const common = require('../common');
66
const assert = require('assert');
77

8-
if (common.isSunOS || common.isWindows || common.isAIX) {
8+
if (common.isSunOS || common.isWindows || common.isAIX || common.isIBMi) {
99
// The current working directory cannot be removed on these platforms.
1010
// Change this to common.skip() when this is no longer a known issue test.
1111
assert.fail('cannot rmdir current working directory');
Collapse file

‎test/parallel/test-cwd-enoent-preload.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent-preload.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const common = require('../common');
33
// 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)
55
common.skip('cannot rmdir current working directory');
66
if (!common.isMainThread)
77
common.skip('process.chdir is not available in Workers');
Collapse file

‎test/parallel/test-cwd-enoent-repl.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent-repl.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const common = require('../common');
33
// 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)
55
common.skip('cannot rmdir current working directory');
66
if (!common.isMainThread)
77
common.skip('process.chdir is not available in Workers');
Collapse file

‎test/parallel/test-cwd-enoent.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-cwd-enoent.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
'use strict';
22
const common = require('../common');
33
// 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)
55
common.skip('cannot rmdir current working directory');
66
if (!common.isMainThread)
77
common.skip('process.chdir is not available in Workers');
Collapse file

‎test/parallel/test-fs-readfile-pipe-large.js‎

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 numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common');
33

44
// Simulate `cat readfile.js | node readfile.js`
55

6-
if (common.isWindows || common.isAIX)
6+
if (common.isWindows || common.isAIX || common.isIBMi)
77
common.skip(`No /dev/stdin on ${process.platform}.`);
88

99
const assert = require('assert');
Collapse file

‎test/parallel/test-fs-readfile-pipe.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-readfile-pipe.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ const common = require('../common');
2424

2525
// Simulate `cat readfile.js | node readfile.js`
2626

27-
if (common.isWindows || common.isAIX)
27+
if (common.isWindows || common.isAIX || common.isIBMi)
2828
common.skip(`No /dev/stdin on ${process.platform}.`);
2929

3030
const assert = require('assert');
Collapse file

‎test/parallel/test-fs-readfilesync-pipe-large.js‎

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 numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const common = require('../common');
33

44
// Simulate `cat readfile.js | node readfile.js`
55

6-
if (common.isWindows || common.isAIX)
6+
if (common.isWindows || common.isAIX || common.isIBMi)
77
common.skip(`No /dev/stdin on ${process.platform}.`);
88

99
const assert = require('assert');
Collapse file

‎test/parallel/test-fs-realpath-pipe.js‎

Copy file name to clipboardExpand all lines: test/parallel/test-fs-realpath-pipe.js
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
const common = require('../common');
44

5-
if (common.isWindows || common.isAIX)
5+
if (common.isWindows || common.isAIX || common.isIBMi)
66
common.skip(`No /dev/stdin on ${process.platform}.`);
77

88
const assert = require('assert');

0 commit comments

Comments
0 (0)
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.