Browse Source

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 <info@bnoordhuis.nl>
Reviewed-By: cjihrig - Colin Ihrig <cjihrig@gmail.com>
v4.x
Alexis Campailla 8 years ago
committed by Myles Borins
parent
commit
e544b1c40c
  1. 5
      test/addons/load-long-path/test.js
  2. 2
      test/common.js

5
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.

2
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') &&

Loading…
Cancel
Save