diff --git a/test/addons/load-long-path/test.js b/test/addons/load-long-path/test.js index 1de2b85fe9..a4f3cb12dc 100644 --- a/test/addons/load-long-path/test.js +++ b/test/addons/load-long-path/test.js @@ -4,6 +4,11 @@ const fs = require('fs'); const path = require('path'); const assert = require('assert'); +if (common.isWOW64) { + common.skip('doesn\'t work on WOW64'); + return; +} + common.refreshTmpDir(); // make a path that is more than 260 chars long. diff --git a/test/common.js b/test/common.js index b0fbfd275f..5aefdc3bce 100644 --- a/test/common.js +++ b/test/common.js @@ -17,6 +17,8 @@ exports.libDir = path.join(exports.testDir, '../lib'); exports.tmpDirName = 'tmp'; exports.PORT = +process.env.NODE_COMMON_PORT || 12346; exports.isWindows = process.platform === 'win32'; +exports.isWOW64 = exports.isWindows && + (process.env['PROCESSOR_ARCHITEW6432'] !== undefined); exports.isAix = process.platform === 'aix'; exports.isLinuxPPCBE = (process.platform === 'linux') && (process.arch === 'ppc64') &&