diff options
author | Ben Noordhuis <info@bnoordhuis.nl> | 2011-07-21 23:21:06 +0400 |
---|---|---|
committer | Ben Noordhuis <info@bnoordhuis.nl> | 2011-07-21 23:26:57 +0400 |
commit | bff96029665ea430afff60aa481c09a5897168ed (patch) | |
tree | 1fdf30f1482bcb0dbe0823c3d614748417ee8bc3 /test | |
parent | 4d3a907f7324e7cea936421e5e2efca2f251cfe0 (diff) |
test: add common.PIPE, pipe name for tests
Diffstat (limited to 'test')
-rw-r--r-- | test/common.js | 6 |
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]; |