diff options
Diffstat (limited to 'test/common.js')
-rw-r--r-- | test/common.js | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/test/common.js b/test/common.js index 202d1fa9bc..2656c91b38 100644 --- a/test/common.js +++ b/test/common.js @@ -54,8 +54,9 @@ exports.indirectInstanceOf = function(obj, cls) { exports.ddCommand = function(filename, kilobytes) { if (process.platform == 'win32') { - return '"' + process.argv[0] + '" "' + path.resolve(exports.fixturesDir, - 'create-file.js') + '" "' + filename + '" ' + (kilobytes * 1024); + var p = path.resolve(exports.fixturesDir, 'create-file.js'); + return '"' + process.argv[0] + '" "' + p + '" "' + + filename + '" ' + (kilobytes * 1024); } else { return 'dd if=/dev/zero of="' + filename + '" bs=1024 count=' + kilobytes; } |