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>
v6.x
Alexis Campailla 9 years ago
committed by Rod Vagg
parent
commit
ea287fc1a6
  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 path = require('path');
const assert = require('assert'); const assert = require('assert');
if (common.isWOW64) {
common.skip('doesn\'t work on WOW64');
return;
}
common.refreshTmpDir(); common.refreshTmpDir();
// make a path that is more than 260 chars long. // 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.tmpDirName = 'tmp';
exports.PORT = +process.env.NODE_COMMON_PORT || 12346; exports.PORT = +process.env.NODE_COMMON_PORT || 12346;
exports.isWindows = process.platform === 'win32'; exports.isWindows = process.platform === 'win32';
exports.isWOW64 = exports.isWindows &&
(process.env['PROCESSOR_ARCHITEW6432'] !== undefined);
exports.isAix = process.platform === 'aix'; exports.isAix = process.platform === 'aix';
exports.isLinuxPPCBE = (process.platform === 'linux') && exports.isLinuxPPCBE = (process.platform === 'linux') &&
(process.arch === 'ppc64') && (process.arch === 'ppc64') &&

Loading…
Cancel
Save