Skip to content

Commit 15b6bcf

Browse files
gibfahnMylesBorins
authored andcommitted
test: make debugging of inspector-port-zero easier
If the process was killed, then the exit code will be null, in which case knowing the signal is really helpful. PR-URL: #16685 Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: Joyee Cheung <[email protected]> Reviewed-By: Eugene Ostroukhov <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Gireesh Punathil <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent 9914bca commit 15b6bcf

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/sequential/test-inspector-port-zero.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@ function test(arg, port = '') {
3434
};
3535
proc.stdout.on('close', mustCall(() => onclose()));
3636
proc.stderr.on('close', mustCall(() => onclose()));
37-
proc.on('exit', mustCall((exitCode) => assert.strictEqual(exitCode, 0)));
37+
proc.on('exit', mustCall((exitCode, signal) => assert.strictEqual(
38+
exitCode,
39+
0,
40+
`exitCode: ${exitCode}, signal: ${signal}`)));
3841
}
3942
}
4043

0 commit comments

Comments
 (0)