Skip to content

Fix issues if a virtual client panics#228

Merged
robin-nitrokey merged 2 commits into
mainfrom
test-panic
Jun 3, 2026
Merged

Fix issues if a virtual client panics#228
robin-nitrokey merged 2 commits into
mainfrom
test-panic

Conversation

@robin-nitrokey
Copy link
Copy Markdown
Member

This PR fixes a problem where a panic in a test case using a virtual client would lead to an infinite loop with high CPU usage, e. g. in fido-authenticator (trussed-dev/fido-authenticator#58).

Previously, a panic in the callback function passed to
virt::with_client* or virt::with_platform would lead to an infinite loop
in the syscall thread. This means that failing tests would never
terminate.
@robin-nitrokey robin-nitrokey merged commit b2492fe into main Jun 3, 2026
3 checks passed
@robin-nitrokey robin-nitrokey deleted the test-panic branch June 3, 2026 07:27
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.

2 participants