Browse Source

test: add common.PIPE, pipe name for tests

v0.7.4-release
Ben Noordhuis 14 years ago
parent
commit
bff9602966
  1. 6
      test/common.js

6
test/common.js

@ -28,6 +28,12 @@ exports.libDir = path.join(exports.testDir, '../lib');
exports.tmpDir = path.join(exports.testDir, 'tmp'); exports.tmpDir = path.join(exports.testDir, 'tmp');
exports.PORT = 12346; exports.PORT = 12346;
if (process.platform == 'win32') {
exports.PIPE = '\\.\pipe\libuv-test';
} else {
exports.PIPE = exports.tmpDir + '/test.sock';
}
var util = require('util'); var util = require('util');
for (var i in util) exports[i] = util[i]; for (var i in util) exports[i] = util[i];
//for (var i in exports) global[i] = exports[i]; //for (var i in exports) global[i] = exports[i];

Loading…
Cancel
Save