Browse Source

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: https://github.com/nodejs/node/pull/14263
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: Bryan English <bryan@bryanenglish.com>
v6
章礼平 8 years ago
committed by Rich Trott
parent
commit
fb37922cf3
  1. 2
      test/common/README.md
  2. 4
      test/common/index.js
  3. 2
      test/known_issues/test-cwd-enoent-file.js
  4. 2
      test/parallel/test-cwd-enoent-preload.js
  5. 2
      test/parallel/test-cwd-enoent-repl.js
  6. 2
      test/parallel/test-cwd-enoent.js
  7. 2
      test/parallel/test-fs-readfile-pipe-large.js
  8. 2
      test/parallel/test-fs-readfile-pipe.js
  9. 2
      test/parallel/test-fs-readfilesync-pipe-large.js
  10. 2
      test/parallel/test-fs-realpath-pipe.js
  11. 2
      test/parallel/test-fs-watch-encoding.js
  12. 2
      test/parallel/test-fs-watch.js
  13. 2
      test/parallel/test-os.js
  14. 2
      test/pseudo-tty/no_dropped_stdio.js
  15. 2
      test/pseudo-tty/no_interleaved_stdio.js
  16. 2
      test/pseudo-tty/test-stderr-stdout-handle-sigwinch.js
  17. 4
      test/sequential/test-fs-watch.js
  18. 2
      test/tick-processor/test-tick-processor-builtin.js
  19. 2
      test/tick-processor/test-tick-processor-cpp-core.js
  20. 2
      test/tick-processor/test-tick-processor-unknown.js

2
test/common/README.md

@ -155,7 +155,7 @@ the number of calls.
Checks whether free BSD Jail is true or false. Checks whether free BSD Jail is true or false.
### isAix ### isAIX
* return [&lt;Boolean>] * return [&lt;Boolean>]
Platform check for Advanced Interactive eXecutive (AIX). Platform check for Advanced Interactive eXecutive (AIX).

4
test/common/index.js

@ -43,7 +43,7 @@ exports.PORT = +process.env.NODE_COMMON_PORT || 12346;
exports.isWindows = process.platform === 'win32'; exports.isWindows = process.platform === 'win32';
exports.isWOW64 = exports.isWindows && exports.isWOW64 = exports.isWindows &&
(process.env.PROCESSOR_ARCHITEW6432 !== undefined); (process.env.PROCESSOR_ARCHITEW6432 !== undefined);
exports.isAix = process.platform === 'aix'; exports.isAIX = process.platform === 'aix';
exports.isLinuxPPCBE = (process.platform === 'linux') && exports.isLinuxPPCBE = (process.platform === 'linux') &&
(process.arch === 'ppc64') && (process.arch === 'ppc64') &&
(os.endianness() === 'BE'); (os.endianness() === 'BE');
@ -330,7 +330,7 @@ exports.platformTimeout = function(ms) {
if (global.__coverage__) if (global.__coverage__)
ms = 4 * ms; ms = 4 * ms;
if (exports.isAix) if (exports.isAIX)
return 2 * ms; // default localhost speed is slower on AIX return 2 * ms; // default localhost speed is slower on AIX
if (process.arch !== 'arm') if (process.arch !== 'arm')

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

@ -5,7 +5,7 @@
const common = require('../common'); const common = require('../common');
const assert = require('assert'); const assert = require('assert');
if (common.isSunOS || common.isWindows || common.isAix) { if (common.isSunOS || common.isWindows || common.isAIX) {
// The current working directory cannot be removed on these platforms. // The current working directory cannot be removed on these platforms.
// Change this to common.skip() when this is no longer a known issue test. // Change this to common.skip() when this is no longer a known issue test.
assert.fail('cannot rmdir current working directory'); assert.fail('cannot rmdir current working directory');

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

@ -1,7 +1,7 @@
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
if (common.isSunOS || common.isWindows || common.isAix) if (common.isSunOS || common.isWindows || common.isAIX)
common.skip('cannot rmdir current working directory'); common.skip('cannot rmdir current working directory');
const assert = require('assert'); const assert = require('assert');

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

@ -1,7 +1,7 @@
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
if (common.isSunOS || common.isWindows || common.isAix) if (common.isSunOS || common.isWindows || common.isAIX)
common.skip('cannot rmdir current working directory'); common.skip('cannot rmdir current working directory');
const assert = require('assert'); const assert = require('assert');

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

@ -1,7 +1,7 @@
'use strict'; 'use strict';
const common = require('../common'); const common = require('../common');
// Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX. // Fails with EINVAL on SmartOS, EBUSY on Windows, EBUSY on AIX.
if (common.isSunOS || common.isWindows || common.isAix) if (common.isSunOS || common.isWindows || common.isAIX)
common.skip('cannot rmdir current working directory'); common.skip('cannot rmdir current working directory');
const assert = require('assert'); const assert = require('assert');

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

@ -3,7 +3,7 @@ const common = require('../common');
// simulate `cat readfile.js | node readfile.js` // simulate `cat readfile.js | node readfile.js`
if (common.isWindows || common.isAix) if (common.isWindows || common.isAIX)
common.skip(`No /dev/stdin on ${process.platform}.`); common.skip(`No /dev/stdin on ${process.platform}.`);
const assert = require('assert'); const assert = require('assert');

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

@ -24,7 +24,7 @@ const common = require('../common');
// simulate `cat readfile.js | node readfile.js` // simulate `cat readfile.js | node readfile.js`
if (common.isWindows || common.isAix) if (common.isWindows || common.isAIX)
common.skip(`No /dev/stdin on ${process.platform}.`); common.skip(`No /dev/stdin on ${process.platform}.`);
const assert = require('assert'); const assert = require('assert');

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

@ -3,7 +3,7 @@ const common = require('../common');
// simulate `cat readfile.js | node readfile.js` // simulate `cat readfile.js | node readfile.js`
if (common.isWindows || common.isAix) if (common.isWindows || common.isAIX)
common.skip(`No /dev/stdin on ${process.platform}.`); common.skip(`No /dev/stdin on ${process.platform}.`);
const assert = require('assert'); const assert = require('assert');

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

@ -2,7 +2,7 @@
const common = require('../common'); const common = require('../common');
if (common.isWindows || common.isAix) if (common.isWindows || common.isAIX)
common.skip(`No /dev/stdin on ${process.platform}.`); common.skip(`No /dev/stdin on ${process.platform}.`);
const assert = require('assert'); const assert = require('assert');

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

@ -16,7 +16,7 @@ const common = require('../common');
// The testcase makes use of folder watching, and causes // The testcase makes use of folder watching, and causes
// hang. This behavior is documented. Skip this for AIX. // hang. This behavior is documented. Skip this for AIX.
if (common.isAix) if (common.isAIX)
common.skip('folder watch capability is limited in AIX.'); common.skip('folder watch capability is limited in AIX.');
const fs = require('fs'); const fs = require('fs');

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

@ -21,7 +21,7 @@ class WatchTestCase {
const cases = [ const cases = [
// Watch on a directory should callback with a filename on supported systems // Watch on a directory should callback with a filename on supported systems
new WatchTestCase( new WatchTestCase(
common.isLinux || common.isOSX || common.isWindows || common.isAix, common.isLinux || common.isOSX || common.isWindows || common.isAIX,
'watch1', 'watch1',
'foo', 'foo',
'filePath' 'filePath'

2
test/parallel/test-os.js

@ -93,7 +93,7 @@ const release = os.release();
is.string(release); is.string(release);
assert.ok(release.length > 0); assert.ok(release.length > 0);
//TODO: Check format on more than just AIX //TODO: Check format on more than just AIX
if (common.isAix) if (common.isAIX)
assert.ok(/^\d+\.\d+$/.test(release)); assert.ok(/^\d+\.\d+$/.test(release));
const platform = os.platform(); const platform = os.platform();

2
test/pseudo-tty/no_dropped_stdio.js

@ -16,4 +16,4 @@ out += `${'o'.repeat(24)}O`;
setTimeout(function() { setTimeout(function() {
process.stdout.write(out); process.stdout.write(out);
process.exit(0); process.exit(0);
}, common.isAix ? 200 : 0); }, common.isAIX ? 200 : 0);

2
test/pseudo-tty/no_interleaved_stdio.js

@ -18,4 +18,4 @@ const err = '__This is some stderr__';
setTimeout(function() { setTimeout(function() {
process.stdout.write(out); process.stdout.write(out);
process.stderr.write(err); process.stderr.write(err);
}, common.isAix ? 200 : 0); }, common.isAIX ? 200 : 0);

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

@ -31,4 +31,4 @@ process.stdout._refreshSize = wrap(originalRefreshSizeStdout,
// can setup the readloop. Provide a reasonable delay. // can setup the readloop. Provide a reasonable delay.
setTimeout(function() { setTimeout(function() {
process.emit('SIGWINCH'); process.emit('SIGWINCH');
}, common.isAix ? 200 : 0); }, common.isAIX ? 200 : 0);

4
test/sequential/test-fs-watch.js

@ -28,7 +28,7 @@ const fs = require('fs');
const expectFilePath = common.isWindows || const expectFilePath = common.isWindows ||
common.isLinux || common.isLinux ||
common.isOSX || common.isOSX ||
common.isAix; common.isAIX;
let watchSeenOne = 0; let watchSeenOne = 0;
let watchSeenTwo = 0; let watchSeenTwo = 0;
@ -102,7 +102,7 @@ const filepathThree = path.join(testsubdir, filenameThree);
assert.doesNotThrow( assert.doesNotThrow(
function() { function() {
const watcher = fs.watch(testsubdir, function(event, filename) { const watcher = fs.watch(testsubdir, function(event, filename) {
const renameEv = common.isSunOS || common.isAix ? 'change' : 'rename'; const renameEv = common.isSunOS || common.isAIX ? 'change' : 'rename';
assert.strictEqual(event, renameEv); assert.strictEqual(event, renameEv);
if (expectFilePath) { if (expectFilePath) {
assert.strictEqual(filename, 'newfile.txt'); assert.strictEqual(filename, 'newfile.txt');

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

@ -6,7 +6,7 @@ if (!common.enoughTestCpu)
if (common.isWindows || if (common.isWindows ||
common.isSunOS || common.isSunOS ||
common.isAix || common.isAIX ||
common.isLinuxPPCBE || common.isLinuxPPCBE ||
common.isFreeBSD) common.isFreeBSD)
common.skip('C++ symbols are not mapped for this os.'); common.skip('C++ symbols are not mapped for this os.');

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

@ -6,7 +6,7 @@ if (!common.enoughTestCpu)
if (common.isWindows || if (common.isWindows ||
common.isSunOS || common.isSunOS ||
common.isAix || common.isAIX ||
common.isLinuxPPCBE || common.isLinuxPPCBE ||
common.isFreeBSD) common.isFreeBSD)
common.skip('C++ symbols are not mapped for this os.'); common.skip('C++ symbols are not mapped for this os.');

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

@ -6,7 +6,7 @@ const common = require('../common');
// the full 64 bits and the result is that it does not process the // the full 64 bits and the result is that it does not process the
// addresses correctly and runs out of memory // addresses correctly and runs out of memory
// Disabling until we get a fix upstreamed into V8 // Disabling until we get a fix upstreamed into V8
if (common.isAix) if (common.isAIX)
common.skip('AIX address range too big for scripts.'); common.skip('AIX address range too big for scripts.');
if (!common.enoughTestCpu) if (!common.enoughTestCpu)

Loading…
Cancel
Save