summaryrefslogtreecommitdiff
path: root/test/parallel/test-child-process-spawnsync-kill-signal.js
diff options
context:
space:
mode:
authorcjihrig <cjihrig@gmail.com>2019-05-24 11:00:45 -0400
committercjihrig <cjihrig@gmail.com>2019-05-27 14:10:51 -0400
commit4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84 (patch)
tree2032a71c650abe5dc84ac38014b9d130f6da296b /test/parallel/test-child-process-spawnsync-kill-signal.js
parent476c3ec750fe2809721d352598fbc02620da829b (diff)
downloadandroid-node-v8-4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84.tar.gz
android-node-v8-4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84.tar.bz2
android-node-v8-4f9cd2770a5f04b4e83157c71a3a9f1bf5b42d84.zip
child_process: simplify spawn argument parsing
This commit simplifies the object returned by normalizeSpawnArguments(). This does impact monkey patching, as illustrated by the changes in tests. PR-URL: https://github.com/nodejs/node/pull/27854 Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: Michaƫl Zasso <targos@protonmail.com> Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'test/parallel/test-child-process-spawnsync-kill-signal.js')
-rw-r--r--test/parallel/test-child-process-spawnsync-kill-signal.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/parallel/test-child-process-spawnsync-kill-signal.js b/test/parallel/test-child-process-spawnsync-kill-signal.js
index b014a384f6..f2decf01b3 100644
--- a/test/parallel/test-child-process-spawnsync-kill-signal.js
+++ b/test/parallel/test-child-process-spawnsync-kill-signal.js
@@ -36,7 +36,7 @@ if (process.argv[2] === 'child') {
// Verify that the default kill signal is SIGTERM.
{
const child = spawn(undefined, (opts) => {
- assert.strictEqual(opts.options.killSignal, undefined);
+ assert.strictEqual(opts.killSignal, undefined);
});
assert.strictEqual(child.signal, 'SIGTERM');
@@ -45,7 +45,7 @@ if (process.argv[2] === 'child') {
// Verify that a string signal name is handled properly.
{
const child = spawn('SIGKILL', (opts) => {
- assert.strictEqual(opts.options.killSignal, SIGKILL);
+ assert.strictEqual(opts.killSignal, SIGKILL);
});
assert.strictEqual(child.signal, 'SIGKILL');
@@ -56,7 +56,7 @@ if (process.argv[2] === 'child') {
assert.strictEqual(typeof SIGKILL, 'number');
const child = spawn(SIGKILL, (opts) => {
- assert.strictEqual(opts.options.killSignal, SIGKILL);
+ assert.strictEqual(opts.killSignal, SIGKILL);
});
assert.strictEqual(child.signal, 'SIGKILL');