From 84b8061be4936b425e614d61fbc3aa2d5c2a56db Mon Sep 17 00:00:00 2001 From: Alexis Campailla Date: Fri, 8 Jul 2016 14:00:57 +0200 Subject: [PATCH] test,win: skip addons/load-long-path on WOW64 This test fails on WOW64 because of a bug in the OS, and there is no acceptable workaround. Ref: https://github.com/nodejs/node/issues/3667 PR-URL: https://github.com/nodejs/node/pull/6675 Reviewed-By: bnoordhuis - Ben Noordhuis Reviewed-By: cjihrig - Colin Ihrig --- test/addons/load-long-path/test.js | 5 +++++ test/common.js | 2 ++ 2 files changed, 7 insertions(+) diff --git a/test/addons/load-long-path/test.js b/test/addons/load-long-path/test.js index 1de2b85fe94aa6..a4f3cb12dc0480 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 801e356b749255..7a054fc167c9ab 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') &&