summaryrefslogtreecommitdiff
path: root/test/common.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/common.js')
-rw-r--r--test/common.js5
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;
}