From 05f174d1a2668b97db50902a0fa2cd6f2a8bd0d7 Mon Sep 17 00:00:00 2001 From: ashleysimpson Date: Fri, 12 Oct 2018 10:01:24 -0700 Subject: [PATCH] test: inline common module boolean --- test/addons/load-long-path/test.js | 2 +- test/common/README.md | 5 ----- test/common/index.js | 2 -- test/common/index.mjs | 2 -- 4 files changed, 1 insertion(+), 10 deletions(-) diff --git a/test/addons/load-long-path/test.js b/test/addons/load-long-path/test.js index ee09230676b5e8..7d1a37bd96055e 100644 --- a/test/addons/load-long-path/test.js +++ b/test/addons/load-long-path/test.js @@ -1,6 +1,6 @@ 'use strict'; const common = require('../../common'); -if (common.isWOW64) +if (common.isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined)) common.skip('doesn\'t work on WOW64'); const fs = require('fs'); diff --git a/test/common/README.md b/test/common/README.md index c3f2c5f6b8a7f1..d46b536f697943 100644 --- a/test/common/README.md +++ b/test/common/README.md @@ -214,11 +214,6 @@ Platform check for SunOS. Platform check for Windows. -### isWOW64 -* [<boolean>] - -Platform check for Windows 32-bit on Windows 64-bit. - ### localhostIPv4 * [<string>] diff --git a/test/common/index.js b/test/common/index.js index 75fe2e1548ea8a..5abd108b768be4 100644 --- a/test/common/index.js +++ b/test/common/index.js @@ -47,7 +47,6 @@ const isMainThread = (() => { })(); const isWindows = process.platform === 'win32'; -const isWOW64 = isWindows && (process.env.PROCESSOR_ARCHITEW6432 !== undefined); const isAIX = process.platform === 'aix'; const isLinuxPPCBE = (process.platform === 'linux') && (process.arch === 'ppc64') && @@ -725,7 +724,6 @@ module.exports = { isOSX, isSunOS, isWindows, - isWOW64, localIPv6Hosts, mustCall, mustCallAsync, diff --git a/test/common/index.mjs b/test/common/index.mjs index 832f68a9ee0d3e..58e40eb79b1c8c 100644 --- a/test/common/index.mjs +++ b/test/common/index.mjs @@ -5,7 +5,6 @@ import common from './index.js'; const { isMainThread, isWindows, - isWOW64, isAIX, isLinuxPPCBE, isSunOS, @@ -54,7 +53,6 @@ const { export { isMainThread, isWindows, - isWOW64, isAIX, isLinuxPPCBE, isSunOS,