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>
This commit is contained in:
章礼平 authored and Anna Henningsen committed 2017-07-24 18:52:38 +02:00
1 parent 26785a23bb
commit d7a1637897
20 files changed
+22 -22

No files matched your search

+1 -1
View File
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common');
// 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');
const assert = require('assert');
+1 -1
View File
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common');
// 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');
const assert = require('assert');
+1 -1
View File
@@ -1,7 +1,7 @@
'use strict';
const common = require('../common');
// 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');
const assert = require('assert');
+1 -1
View File
@@ -3,7 +3,7 @@ const common = require('../common');
// 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}.`);
const assert = require('assert');
+1 -1
View File
@@ -24,7 +24,7 @@ const common = require('../common');
// 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}.`);
const assert = require('assert');
@@ -3,7 +3,7 @@ const common = require('../common');
// 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}.`);
const assert = require('assert');
+1 -1
View File
@@ -2,7 +2,7 @@
const common = require('../common');
if (common.isWindows || common.isAix)
if (common.isWindows || common.isAIX)
common.skip(`No /dev/stdin on ${process.platform}.`);
const assert = require('assert');
+1 -1
View File
@@ -16,7 +16,7 @@ const common = require('../common');
// The testcase makes use of folder watching, and causes
// hang. This behavior is documented. Skip this for AIX.
if (common.isAix)
if (common.isAIX)
common.skip('folder watch capability is limited in AIX.');
const fs = require('fs');
+1 -1
View File
@@ -21,7 +21,7 @@ class WatchTestCase {
const cases = [
// Watch on a directory should callback with a filename on supported systems
new WatchTestCase(
common.isLinux || common.isOSX || common.isWindows || common.isAix,
common.isLinux || common.isOSX || common.isWindows || common.isAIX,
'watch1',
'foo',
'filePath'
+1 -1
View File
@@ -93,7 +93,7 @@ const release = os.release();
is.string(release);
assert.ok(release.length > 0);
//TODO: Check format on more than just AIX
if (common.isAix)
if (common.isAIX)
assert.ok(/^\d+\.\d+$/.test(release));
const platform = os.platform();