test: normalize known inspector crash as completion

This works around a pre-existing inspector issue:
if the debuggee exits too quickly the inspector can
segfault while tearing down. For now normalize the
trailing segfault as completion to keep the CI green
until the upstream bug is fixed, since it only
reproduces on some slow CI machines and is not
what the probe tests care about.

PR-URL: https://github.com/nodejs/node/pull/62851
Refs: https://github.com/nodejs/node/issues/62765
Refs: https://github.com/nodejs/node/issues/58245
Reviewed-By: Jan Martin <jan.krems@gmail.com>
Reviewed-By: Chengzhong Wu <legendecas@gmail.com>
Reviewed-By: Jacob Smith <jacob@frende.me>
Reviewed-By: Filip Skokan <panva.ip@gmail.com>
This commit is contained in:
Joyee Cheung authored and GitHub committed 2026-04-23 19:16:00 +00:00
1 parent 1f6f3ac871
commit 3dc06aef21
10 files changed
+69 -33

No files matched your search

+2 -3
View File
@@ -4,9 +4,8 @@
const common = require('../common');
common.skipIfInspectorDisabled();
const assert = require('assert');
const { spawnSyncAndExit } = require('../common/child_process');
const { timeoutScript } = require('../common/debugger-probe');
const { assertProbeJson, timeoutScript } = require('../common/debugger-probe');
spawnSyncAndExit(process.execPath, [
'inspect',
@@ -19,7 +18,7 @@ spawnSyncAndExit(process.execPath, [
signal: null,
status: 1,
stdout(output) {
assert.deepStrictEqual(JSON.parse(output), {
assertProbeJson(output, {
v: 1,
probes: [{ expr: '1', target: [timeoutScript, 99] }],
results: [{