Skip to content

Commit

Permalink
tools: fix for testing openssl integrations
Browse files Browse the repository at this point in the history
Windows doesn't resolve ".." the way we expect it for symlinks and
junctions.

PR-URL: nodejs/node-v0.x-archive#8489
Reviewed-by: Trevor Norris <[email protected]>
Reviewed-by: Fedor Indutny <[email protected]>
  • Loading branch information
refack authored and trevnorris committed Oct 8, 2014
1 parent 7b4a540 commit 573e6af
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ exports.libDir = path.join(exports.testDir, '../lib');
exports.tmpDir = path.join(exports.testDir, 'tmp');
exports.PORT = +process.env.NODE_COMMON_PORT || 12346;

exports.opensslCli = path.join(path.dirname(process.execPath), 'openssl-cli');
if (process.platform === 'win32') {
exports.PIPE = '\\\\.\\pipe\\libuv-test';
exports.opensslCli = path.join(process.execPath, '..', 'openssl-cli.exe');
exports.opensslCli += '.exe';
} else {
exports.PIPE = exports.tmpDir + '/test.sock';
exports.opensslCli = path.join(process.execPath, '..', 'openssl-cli');
}
if (!fs.existsSync(exports.opensslCli))
exports.opensslCli = false;
Expand Down

0 comments on commit 573e6af

Please sign in to comment.