summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-exec-encoding.js
diff options
context:
space:
mode:
authorVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-05-11 15:10:00 +0300
committerVse Mozhet Byt <vsemozhetbyt@gmail.com>2017-05-14 16:05:48 +0300
commit945f20808143d954fea73e4ac3a0d71cf73c9b2c (patch)
tree23bdae68aa818091fbcb22c29f4b878f60cd99ee /test/parallel/test-child-process-exec-encoding.js
parent9516aa19c16cbfda6917c4fb8d6aecf2da8a16aa (diff)
downloadandroid-node-v8-945f20808143d954fea73e4ac3a0d71cf73c9b2c.tar.gz
android-node-v8-945f20808143d954fea73e4ac3a0d71cf73c9b2c.tar.bz2
android-node-v8-945f20808143d954fea73e4ac3a0d71cf73c9b2c.zip
test: make the rest of tests path-independent
Permit spaces in paths to a Node.js executable and test scripts. PR-URL: https://github.com/nodejs/node/pull/12972 Fixes: https://github.com/nodejs/node/issues/12773 Reviewed-By: Rich Trott <rtrott@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-exec-encoding.js')
-rw-r--r--test/parallel/test-child-process-exec-encoding.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-exec-encoding.js b/test/parallel/test-child-process-exec-encoding.js
index ba80ccda8c..781ee51d96 100644
--- a/test/parallel/test-child-process-exec-encoding.js
+++ b/test/parallel/test-child-process-exec-encoding.js
@@ -13,7 +13,7 @@ if (process.argv[2] === 'child') {
console.error(stderrData);
} else {
function run(options, callback) {
- const cmd = `${process.execPath} ${__filename} child`;
+ const cmd = `"${process.execPath}" "${__filename}" child`;
cp.exec(cmd, options, common.mustCall((err, stdout, stderr) => {
assert.ifError(err);