test: add common.PIPE, pipe name for tests
authorBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 19:21:06 +0000 (21:21 +0200)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 21 Jul 2011 19:26:57 +0000 (21:26 +0200)
test/common.js

index 6360295..c108afa 100644 (file)
@@ -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];