summaryrefslogtreecommitdiff
path: root/test/common/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/common/index.js')
-rw-r--r--test/common/index.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/common/index.js b/test/common/index.js
index 888a1feba3..09b7f55778 100644
--- a/test/common/index.js
+++ b/test/common/index.js
@@ -102,6 +102,9 @@ if (process.argv.length === 2 &&
const isWindows = process.platform === 'win32';
const isAIX = process.platform === 'aix';
+// On IBMi, process.platform and os.platform() both return 'aix',
+// It is not enough to differentiate between IBMi and real AIX system.
+const isIBMi = os.type() === 'OS400';
const isLinuxPPCBE = (process.platform === 'linux') &&
(process.arch === 'ppc64') &&
(os.endianness() === 'BE');
@@ -762,6 +765,7 @@ module.exports = {
isAIX,
isAlive,
isFreeBSD,
+ isIBMi,
isLinux,
isLinuxPPCBE,
isMainThread,