aboutsummaryrefslogtreecommitdiff
path: root/test/sequential/test-init.js
diff options
context:
space:
mode:
authorShigeki Ohtsu <ohtsu@iij.ad.jp>2015-03-12 10:16:26 +0900
committerBert Belder <bertbelder@gmail.com>2015-03-12 17:35:20 -0700
commit82f067e60bb3eb87cc1119655ae0a5968e988326 (patch)
tree2b3ecfedd0185162b6e3ac77ee93a55054c2cf8a /test/sequential/test-init.js
parent5ecdc0314d87354166b282501435b2f6fd2248ab (diff)
downloadandroid-node-v8-82f067e60bb3eb87cc1119655ae0a5968e988326.tar.gz
android-node-v8-82f067e60bb3eb87cc1119655ae0a5968e988326.tar.bz2
android-node-v8-82f067e60bb3eb87cc1119655ae0a5968e988326.zip
test: fix ext commands to be double quoted
Paths used on the Windows command line need to be enclosed in double quotes, or they'll be parsed incorrectly when there are spaces in the path. PR-URL: https://github.com/iojs/io.js/pull/1122 Reviewed-by: Bert Belder <bertbelder@gmail.com>
Diffstat (limited to 'test/sequential/test-init.js')
-rw-r--r--test/sequential/test-init.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/sequential/test-init.js b/test/sequential/test-init.js
index b2f25899c2..abc6378a63 100644
--- a/test/sequential/test-init.js
+++ b/test/sequential/test-init.js
@@ -14,12 +14,12 @@
var envCopy = JSON.parse(JSON.stringify(process.env));
envCopy.TEST_INIT = 1;
- child.exec(process.execPath + ' test-init', {env: envCopy},
+ child.exec('"' + process.execPath + '" test-init', {env: envCopy},
function(err, stdout, stderr) {
assert.equal(stdout, 'Loaded successfully!',
'`node test-init` failed!');
});
- child.exec(process.execPath + ' test-init.js', {env: envCopy},
+ child.exec('"' + process.execPath + '" test-init.js', {env: envCopy},
function(err, stdout, stderr) {
assert.equal(stdout, 'Loaded successfully!',
'`node test-init.js` failed!');
@@ -28,7 +28,7 @@
// test-init-index is in fixtures dir as requested by ry, so go there
process.chdir(common.fixturesDir);
- child.exec(process.execPath + ' test-init-index', {env: envCopy},
+ child.exec('"' + process.execPath + '" test-init-index', {env: envCopy},
function(err, stdout, stderr) {
assert.equal(stdout, 'Loaded successfully!',
'`node test-init-index failed!');
@@ -39,7 +39,7 @@
// expected in node
process.chdir(common.fixturesDir + '/test-init-native/');
- child.exec(process.execPath + ' fs', {env: envCopy},
+ child.exec('"' + process.execPath + '" fs', {env: envCopy},
function(err, stdout, stderr) {
assert.equal(stdout, 'fs loaded successfully',
'`node fs` failed!');