test: handle null stdio streams in spawnSyncAndAssert helper · nodejs/node@af52410 · GitHub
Skip to content

Commit af52410

Browse files
joyeecheungaduh95
authored andcommitted
test: handle null stdio streams in spawnSyncAndAssert helper
When a test uses 'pipe' for the stdio but the child process crashes, the stream will be null. In this case, don't try to stringify it and instead log an empty string. Signed-off-by: Joyee Cheung <joyeec9h3@gmail.com> PR-URL: #64273 Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Gürgün Dayıoğlu <hey@gurgun.day>
1 parent 0ea079b commit af52410

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

test/common/child_process.js

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)