mirror of https://github.com/nodejs/node.git
tools: fix for testing openssl integrations
Windows doesn't resolve ".." the way we expect it for symlinks and junctions. PR-URL: https://github.com/joyent/node/pull/8489 Reviewed-by: Trevor Norris <trev.norris@gmail.com> Reviewed-by: Fedor Indutny <fedor@indutny.com>archived-io.js-v0.10
parent
7b4a540422
commit
573e6afc09
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue