Skip to content

Commit e544b1c

Browse files
orangemochaMyles Borins
authored and
Myles Borins
committed
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: #3667 PR-URL: #6675 Reviewed-By: bnoordhuis - Ben Noordhuis <[email protected]> Reviewed-By: cjihrig - Colin Ihrig <[email protected]>
1 parent 0bfedd1 commit e544b1c

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

test/addons/load-long-path/test.js

+5
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ const fs = require('fs');
44
const path = require('path');
55
const assert = require('assert');
66

7+
if (common.isWOW64) {
8+
common.skip('doesn\'t work on WOW64');
9+
return;
10+
}
11+
712
common.refreshTmpDir();
813

914
// make a path that is more than 260 chars long.

test/common.js

+2
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,8 @@ exports.libDir = path.join(exports.testDir, '../lib');
1717
exports.tmpDirName = 'tmp';
1818
exports.PORT = +process.env.NODE_COMMON_PORT || 12346;
1919
exports.isWindows = process.platform === 'win32';
20+
exports.isWOW64 = exports.isWindows &&
21+
(process.env['PROCESSOR_ARCHITEW6432'] !== undefined);
2022
exports.isAix = process.platform === 'aix';
2123
exports.isLinuxPPCBE = (process.platform === 'linux') &&
2224
(process.arch === 'ppc64') &&

0 commit comments

Comments
 (0)