mirror of
https://github.com/nodejs/node.git
synced 2026-11-27 17:52:27 -05:00
When the spawned child process gets closed with a signal, the exit code is not set and that is why the exit code assertion was failing. This change adjusts the test to check the signal and if it is truthy, it doesn't assert the exit code and instead logs the signal and continues the rest of the assertions. Refs: https://github.com/nodejs/node/issues/58463#issuecomment-2911460454 Refs: https://github.com/nodejs/node/issues/58199 Refs: https://github.com/nodejs/node/issues/58463 Signed-off-by: Darshan Sen <raisinten@gmail.com> PR-URL: https://github.com/nodejs/node/pull/58478 Reviewed-By: Gerhard Stöbich <deb2001-github@yahoo.de> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>