Skip to content

Commit d7a1637

Browse files
LipperZackaddaleax
authored andcommitted
test: change isAix to isAIX
This makes the naming more consistent with existing properties like isFreeBSD where the capitalization of the property name is consistent with the conventional styling of the operating system. PR-URL: #14263 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Bryan English <[email protected]>
1 parent 26785a2 commit d7a1637

20 files changed

+22
-22
lines changed

test/common/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ the number of calls.
147147

148148
Checks whether free BSD Jail is true or false.
149149

150-
### isAix
150+
### isAIX
151151
* return [&lt;Boolean>](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures#Boolean_type)
152152

153153
Platform check for Advanced Interactive eXecutive (AIX).

test/common/index.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ exports.PORT = +process.env.NODE_COMMON_PORT || 12346;
4444
exports.isWindows = process.platform === 'win32';
4545
exports.isWOW64 = exports.isWindows &&
4646
(process.env.PROCESSOR_ARCHITEW6432 !== undefined);
47-
exports.isAix = process.platform === 'aix';
47+
exports.isAIX = process.platform === 'aix';
4848
exports.isLinuxPPCBE = (process.platform === 'linux') &&
4949
(process.arch === 'ppc64') &&
5050
(os.endianness() === 'BE');
@@ -333,7 +333,7 @@ exports.platformTimeout = function(ms) {
333333
if (global.__coverage__)
334334
ms = 4 * ms;
335335

336-
if (exports.isAix)
336+
if (exports.isAIX)
337337
return 2 * ms; // default localhost speed is slower on AIX
338338

339339
if (process.arch !== 'arm')

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

+1-1
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) {
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');

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

+1-1
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)
55
common.skip('cannot rmdir current working directory');
66

77
const assert = require('assert');

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

+1-1
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)
55
common.skip('cannot rmdir current working directory');
66

77
const assert = require('assert');

test/parallel/test-cwd-enoent.js

+1-1
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)
55
common.skip('cannot rmdir current working directory');
66

77
const assert = require('assert');

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

+1-1
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)
77
common.skip(`No /dev/stdin on ${process.platform}.`);
88

99
const assert = require('assert');

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

+1-1
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)
2828
common.skip(`No /dev/stdin on ${process.platform}.`);
2929

3030
const assert = require('assert');

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

+1-1
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)
77
common.skip(`No /dev/stdin on ${process.platform}.`);
88

99
const assert = require('assert');

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

+1-1
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)
66
common.skip(`No /dev/stdin on ${process.platform}.`);
77

88
const assert = require('assert');

test/parallel/test-fs-watch-encoding.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const common = require('../common');
1616
// The testcase makes use of folder watching, and causes
1717
// hang. This behavior is documented. Skip this for AIX.
1818

19-
if (common.isAix)
19+
if (common.isAIX)
2020
common.skip('folder watch capability is limited in AIX.');
2121

2222
const fs = require('fs');

test/parallel/test-fs-watch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class WatchTestCase {
2121
const cases = [
2222
// Watch on a directory should callback with a filename on supported systems
2323
new WatchTestCase(
24-
common.isLinux || common.isOSX || common.isWindows || common.isAix,
24+
common.isLinux || common.isOSX || common.isWindows || common.isAIX,
2525
'watch1',
2626
'foo',
2727
'filePath'

test/parallel/test-os.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const release = os.release();
9393
is.string(release);
9494
assert.ok(release.length > 0);
9595
//TODO: Check format on more than just AIX
96-
if (common.isAix)
96+
if (common.isAIX)
9797
assert.ok(/^\d+\.\d+$/.test(release));
9898

9999
const platform = os.platform();

test/pseudo-tty/no_dropped_stdio.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@ out += `${'o'.repeat(24)}O`;
1616
setTimeout(function() {
1717
process.stdout.write(out);
1818
process.exit(0);
19-
}, common.isAix ? 200 : 0);
19+
}, common.isAIX ? 200 : 0);

test/pseudo-tty/no_interleaved_stdio.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ const err = '__This is some stderr__';
1818
setTimeout(function() {
1919
process.stdout.write(out);
2020
process.stderr.write(err);
21-
}, common.isAix ? 200 : 0);
21+
}, common.isAIX ? 200 : 0);

test/pseudo-tty/test-stderr-stdout-handle-sigwinch.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,4 @@ process.stdout._refreshSize = wrap(originalRefreshSizeStdout,
3131
// can setup the readloop. Provide a reasonable delay.
3232
setTimeout(function() {
3333
process.emit('SIGWINCH');
34-
}, common.isAix ? 200 : 0);
34+
}, common.isAIX ? 200 : 0);

test/sequential/test-fs-watch.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const fs = require('fs');
2828
const expectFilePath = common.isWindows ||
2929
common.isLinux ||
3030
common.isOSX ||
31-
common.isAix;
31+
common.isAIX;
3232

3333
let watchSeenOne = 0;
3434
let watchSeenTwo = 0;
@@ -102,7 +102,7 @@ const filepathThree = path.join(testsubdir, filenameThree);
102102
assert.doesNotThrow(
103103
function() {
104104
const watcher = fs.watch(testsubdir, function(event, filename) {
105-
const renameEv = common.isSunOS || common.isAix ? 'change' : 'rename';
105+
const renameEv = common.isSunOS || common.isAIX ? 'change' : 'rename';
106106
assert.strictEqual(event, renameEv);
107107
if (expectFilePath) {
108108
assert.strictEqual(filename, 'newfile.txt');

test/tick-processor/test-tick-processor-builtin.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (!common.enoughTestCpu)
66

77
if (common.isWindows ||
88
common.isSunOS ||
9-
common.isAix ||
9+
common.isAIX ||
1010
common.isLinuxPPCBE ||
1111
common.isFreeBSD)
1212
common.skip('C++ symbols are not mapped for this os.');

test/tick-processor/test-tick-processor-cpp-core.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ if (!common.enoughTestCpu)
66

77
if (common.isWindows ||
88
common.isSunOS ||
9-
common.isAix ||
9+
common.isAIX ||
1010
common.isLinuxPPCBE ||
1111
common.isFreeBSD)
1212
common.skip('C++ symbols are not mapped for this os.');

test/tick-processor/test-tick-processor-unknown.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ const common = require('../common');
66
// the full 64 bits and the result is that it does not process the
77
// addresses correctly and runs out of memory
88
// Disabling until we get a fix upstreamed into V8
9-
if (common.isAix)
9+
if (common.isAIX)
1010
common.skip('AIX address range too big for scripts.');
1111

1212
if (!common.enoughTestCpu)

0 commit comments

Comments
 (0)