Skip to content

Add panic-ub test mode#214

Merged
nunoplopes merged 1 commit into
Cpp2Rust:masterfrom
lucic71:panic-ub
Jul 1, 2026
Merged

Add panic-ub test mode#214
nunoplopes merged 1 commit into
Cpp2Rust:masterfrom
lucic71:panic-ub

Conversation

@lucic71

@lucic71 lucic71 commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

The panic mode is currently used for both describing UB tests (e.g. translate null ptr deref as panic) and for describing translation gaps (panic in libcc2rs for types that don't implement ByteRepr).

I renamed the first type as panic-ub and the second type as panic. So that the Expectedly Failed Tests in lit includes the second type, i.e. translation gaps.

@nunoplopes

Copy link
Copy Markdown
Contributor

Can't you use XFAIL for these?

@lucic71

lucic71 commented Jul 1, 2026

Copy link
Copy Markdown
Contributor Author

Can't you use XFAIL for these?

XFAIL is too general; using panic, no-compile, translation-fail it's easier to track the state of a unit test.

@nunoplopes nunoplopes merged commit 8a31aea into Cpp2Rust:master Jul 1, 2026
9 checks passed
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