UI tests that pass --test
to rustc fail on panic=abort targets
#135819
Labels
A-testsuite
Area: The testsuite used to check the correctness of rustc
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Namely
By default, unit tests on panic=abort targets will abort the whole process. As these tests rely on
#[should_panic]
tests, they fail on those targets.These tests can be made work on panic=abort targets with the additional
-Zpanic_abort_tests
flag. Both modes (with and without the-Z
flag) can be tested using test revisions.The other, simpler alternative is to mark the tests as
needs-unwind
to ignore them on panic=abort targets.I'll send a PR implementing the first alternative.
The text was updated successfully, but these errors were encountered: