Skip to content

Fix process.process.exit typo in the test harness error path#2965

Merged
schani merged 1 commit into
masterfrom
fix-test-harness-exit-typo
Jul 20, 2026
Merged

Fix process.process.exit typo in the test harness error path#2965
schani merged 1 commit into
masterfrom
fix-test-harness-exit-typo

Conversation

@schani

@schani schani commented Jul 20, 2026

Copy link
Copy Markdown
Member

test/test.ts's top-level catch handler has process.process.exit(1) (typo from 232e259, when the exit package was replaced). It only executes when main() rejects — first seen today on #2964, where a curl SSL flake in the cJSON fixture setup rejected main() and the handler crashed with TypeError: Cannot read properties of undefined (reading 'exit'), burying the actual error. Exit code was 1 either way; this just restores honest diagnostics.

🤖 Generated with Claude Code

When main() rejects (e.g. a fixture setupCommand fails on a network
flake), the catch handler crashed with "Cannot read properties of
undefined (reading 'exit')" instead of exiting cleanly, burying the
real error under a TypeError. Introduced in 232e259.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@schani
schani merged commit b204a47 into master Jul 20, 2026
28 checks passed
@schani
schani deleted the fix-test-harness-exit-typo branch July 20, 2026 17:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant