projects
/
platform
/
upstream
/
nodejs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4d3a907
)
test: add common.PIPE, pipe name for tests
author
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 21 Jul 2011 19:21:06 +0000
(21:21 +0200)
committer
Ben Noordhuis
<info@bnoordhuis.nl>
Thu, 21 Jul 2011 19:26:57 +0000
(21:26 +0200)
test/common.js
patch
|
blob
|
history
diff --git
a/test/common.js
b/test/common.js
index
6360295
..
c108afa
100644
(file)
--- 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];