diff options
author | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-11 15:10:00 +0300 |
---|---|---|
committer | Vse Mozhet Byt <vsemozhetbyt@gmail.com> | 2017-05-14 16:05:48 +0300 |
commit | 945f20808143d954fea73e4ac3a0d71cf73c9b2c (patch) | |
tree | 23bdae68aa818091fbcb22c29f4b878f60cd99ee /test/parallel/test-domain-with-abort-on-uncaught-exception.js | |
parent | 9516aa19c16cbfda6917c4fb8d6aecf2da8a16aa (diff) | |
download | android-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-domain-with-abort-on-uncaught-exception.js')
-rw-r--r-- | test/parallel/test-domain-with-abort-on-uncaught-exception.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/parallel/test-domain-with-abort-on-uncaught-exception.js b/test/parallel/test-domain-with-abort-on-uncaught-exception.js index 5b455f6f91..03ab39dbfc 100644 --- a/test/parallel/test-domain-with-abort-on-uncaught-exception.js +++ b/test/parallel/test-domain-with-abort-on-uncaught-exception.js @@ -103,8 +103,8 @@ if (process.argv[2] === 'child') { if (options.useTryCatch) useTryCatchOpt = 'useTryCatch'; - cmdToExec += `${process.argv[0]} ${cmdLineOption ? cmdLineOption : ''} ${ - process.argv[1]} child ${throwInDomainErrHandlerOpt} ${useTryCatchOpt}`; + cmdToExec += `"${process.argv[0]}" ${cmdLineOption ? cmdLineOption : ''} "${ + process.argv[1]}" child ${throwInDomainErrHandlerOpt} ${useTryCatchOpt}`; const child = exec(cmdToExec); |