panic=abort compatible test harness #43788
Labels
A-libtest
Area: `#[test]` / the `test` library
C-feature-accepted
Category: A feature request that has been accepted pending implementation.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Right now developing a
panic=abort
project can be relatively painful when running tests. Acargo build
will compile everything withpanic=abort
but acargo test
will recompile everything withpanic=unwind
. This is currently due to the fact that libtest requires panic=unwind to correctly operate. Otherwise it can't catch test failures!We may wish to explore a panic=abort compatible test harness to remove Cargo's special casing. Some possible ways to implement this may be:
I think that we'll also need support in the compiler for this, we'd have to inject different test frameworks or backends depending on the
-C panic=...
configured mode.The text was updated successfully, but these errors were encountered: