|
@ -28,7 +28,7 @@ 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') { |
|
|
if (process.platform === 'win32') { |
|
|
exports.PIPE = '\\\\.\\pipe\\libuv-test'; |
|
|
exports.PIPE = '\\\\.\\pipe\\libuv-test'; |
|
|
} else { |
|
|
} else { |
|
|
exports.PIPE = exports.tmpDir + '/test.sock'; |
|
|
exports.PIPE = exports.tmpDir + '/test.sock'; |
|
@ -53,7 +53,7 @@ exports.indirectInstanceOf = function(obj, cls) { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
exports.ddCommand = function(filename, kilobytes) { |
|
|
exports.ddCommand = function(filename, kilobytes) { |
|
|
if (process.platform == 'win32') { |
|
|
if (process.platform === 'win32') { |
|
|
var p = path.resolve(exports.fixturesDir, 'create-file.js'); |
|
|
var p = path.resolve(exports.fixturesDir, 'create-file.js'); |
|
|
return '"' + process.argv[0] + '" "' + p + '" "' + |
|
|
return '"' + process.argv[0] + '" "' + p + '" "' + |
|
|
filename + '" ' + (kilobytes * 1024); |
|
|
filename + '" ' + (kilobytes * 1024); |
|
@ -66,7 +66,7 @@ exports.ddCommand = function(filename, kilobytes) { |
|
|
exports.spawnPwd = function(options) { |
|
|
exports.spawnPwd = function(options) { |
|
|
var spawn = require('child_process').spawn; |
|
|
var spawn = require('child_process').spawn; |
|
|
|
|
|
|
|
|
if (process.platform == 'win32') { |
|
|
if (process.platform === 'win32') { |
|
|
return spawn('cmd.exe', ['/c', 'cd'], options); |
|
|
return spawn('cmd.exe', ['/c', 'cd'], options); |
|
|
} else { |
|
|
} else { |
|
|
return spawn('pwd', [], options); |
|
|
return spawn('pwd', [], options); |
|
|