diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/unit_node/child_process_test.ts | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/unit_node/child_process_test.ts b/tests/unit_node/child_process_test.ts index 36d9d4345..6a1d1dbc5 100644 --- a/tests/unit_node/child_process_test.ts +++ b/tests/unit_node/child_process_test.ts @@ -810,3 +810,16 @@ Deno.test(async function spawnCommandNotFoundErrno() { }); await promise; }); + +// https://github.com/denoland/deno/issues/23045 +Deno.test(function spawnCommandNullStdioArray() { + const ret = spawnSync( + `"${Deno.execPath()}" eval "console.log('hello');console.error('world')"`, + { + stdio: [null, null, null], + shell: true, + }, + ); + + assertEquals(ret.status, 0); +}); |