Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2011-07-21 23:21:06 +0400
committerBen Noordhuis <info@bnoordhuis.nl>2011-07-21 23:26:57 +0400
commitbff96029665ea430afff60aa481c09a5897168ed (patch)
tree1fdf30f1482bcb0dbe0823c3d614748417ee8bc3 /test
parent4d3a907f7324e7cea936421e5e2efca2f251cfe0 (diff)
test: add common.PIPE, pipe name for tests
Diffstat (limited to 'test')
-rw-r--r--test/common.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/common.js b/test/common.js
index 636029578c0..c108afa4987 100644
--- a/test/common.js
+++ b/test/common.js
@@ -28,6 +28,12 @@ exports.libDir = path.join(exports.testDir, '../lib');
exports.tmpDir = path.join(exports.testDir, 'tmp');
exports.PORT = 12346;
+if (process.platform == 'win32') {
+ exports.PIPE = '\\.\pipe\libuv-test';
+} else {
+ exports.PIPE = exports.tmpDir + '/test.sock';
+}
+
var util = require('util');
for (var i in util) exports[i] = util[i];
//for (var i in exports) global[i] = exports[i];