test: allow common.PIPE to be configured via env

Add optional env var $NODE_COMMON_PIPE for setting common.PIPE to
manually deal with maximum path lengths for unix sockets.

PR-URL: https://github.com/node-forward/node/pull/26
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
archived-io.js-v0.10
Rod Vagg 2014-10-18 15:06:43 +11:00 committed by Ben Noordhuis
parent 3a786d3d88
commit 05daf5f7b7
1 changed files with 2 additions and 0 deletions

View File

@ -37,6 +37,8 @@ if (process.platform === 'win32') {
} else {
exports.PIPE = exports.tmpDir + '/test.sock';
}
if (process.env.NODE_COMMON_PIPE)
exports.PIPE = process.env.NODE_COMMON_PIPE;
if (!fs.existsSync(exports.opensslCli))
exports.opensslCli = false;