Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
tests: Add RUST_BACKTRACE and -Cpanic revisions to `panic-main.rs…
…` test
  • Loading branch information
Enselic committed Jun 23, 2025
commit aa460dc24751c038a6598a8adff7914065025b93
23 changes: 23 additions & 0 deletions tests/ui/panics/panic-main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,26 @@
//@ revisions: default abort-zero abort-one abort-full unwind-zero unwind-one unwind-full

//@[abort-zero] compile-flags: -Cpanic=abort
//@[abort-zero] no-prefer-dynamic
//@[abort-zero] exec-env:RUST_BACKTRACE=0

//@[abort-one] compile-flags: -Cpanic=abort
//@[abort-one] no-prefer-dynamic
//@[abort-one] exec-env:RUST_BACKTRACE=1

//@[abort-full] compile-flags: -Cpanic=abort
//@[abort-full] no-prefer-dynamic
//@[abort-full] exec-env:RUST_BACKTRACE=full

//@[unwind-zero] compile-flags: -Cpanic=unwind
//@[unwind-zero] exec-env:RUST_BACKTRACE=0

//@[unwind-one] compile-flags: -Cpanic=unwind
//@[unwind-one] exec-env:RUST_BACKTRACE=1

//@[unwind-full] compile-flags: -Cpanic=unwind
//@[unwind-full] exec-env:RUST_BACKTRACE=full

//@ run-fail
//@ error-pattern:moop
//@ needs-subprocess
Expand Down
Loading