diff options
author | Rod Vagg <rod@vagg.org> | 2017-10-23 18:47:39 +1100 |
---|---|---|
committer | Rod Vagg <rod@vagg.org> | 2017-11-10 09:24:17 +1100 |
commit | 3b3ceafaf922e1d79950595eaa501aa412913820 (patch) | |
tree | 7a160246a62b53e724f9dc68354b918ef3789973 /test/parallel/test-child-process-fork-no-shell.js | |
parent | 5e1e460ac1d84b4b23a9c3a0280549b29af6ed1f (diff) | |
download | android-node-v8-3b3ceafaf922e1d79950595eaa501aa412913820.tar.gz android-node-v8-3b3ceafaf922e1d79950595eaa501aa412913820.tar.bz2 android-node-v8-3b3ceafaf922e1d79950595eaa501aa412913820.zip |
test: pass process.env to child processes
For variables such as LD_LIBRARY_PATH and DYLD_LIBRARY_PATH that are
needed for dynamically linked binaries
PR-URL: https://github.com/nodejs/node/pull/16405
Reviewed-By: Refael Ackermann <refack@gmail.com>
Reviewed-By: Gibson Fahnestock <gibfahn@gmail.com>
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com>
Diffstat (limited to 'test/parallel/test-child-process-fork-no-shell.js')
-rw-r--r-- | test/parallel/test-child-process-fork-no-shell.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/parallel/test-child-process-fork-no-shell.js b/test/parallel/test-child-process-fork-no-shell.js index 7a085913fb..168f115b0c 100644 --- a/test/parallel/test-child-process-fork-no-shell.js +++ b/test/parallel/test-child-process-fork-no-shell.js @@ -8,7 +8,7 @@ const expected = common.isWindows ? '%foo%' : '$foo'; if (process.argv[2] === undefined) { const child = cp.fork(__filename, [expected], { shell: true, - env: { foo: 'bar' } + env: Object.assign({}, process.env, { foo: 'bar' }) }); child.on('exit', common.mustCall((code, signal) => { |