mirror of
https://github.com/nodejs/node.git
synced 2026-11-30 11:55:44 -05:00
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:
1 parent
1f6f3ac871
commit
3dc06aef21
10 files changed
+69
-33
No files matched your search
@@ -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: [{
|
||||
|
||||
Reference in new issue
Block a user