Skip to content

Commit a5df2d6

Browse files
authored
Rollup merge of rust-lang#142304 - Enselic:panic-main-revisions, r=compiler-errors
tests: Add `RUST_BACKTRACE` and `-Cpanic` revisions to `panic-main.rs` test This is a regression test for rust-lang#123733 (**P-high** and **regression-from-stable-to-stable**) which was [fixed by accident without a regression test](rust-lang#123733 (comment)). Edit 2025-06-23: Closes rust-lang#123733
2 parents 5795086 + aa460dc commit a5df2d6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

tests/ui/panics/panic-main.rs

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1+
//@ revisions: default abort-zero abort-one abort-full unwind-zero unwind-one unwind-full
2+
3+
//@[abort-zero] compile-flags: -Cpanic=abort
4+
//@[abort-zero] no-prefer-dynamic
5+
//@[abort-zero] exec-env:RUST_BACKTRACE=0
6+
7+
//@[abort-one] compile-flags: -Cpanic=abort
8+
//@[abort-one] no-prefer-dynamic
9+
//@[abort-one] exec-env:RUST_BACKTRACE=1
10+
11+
//@[abort-full] compile-flags: -Cpanic=abort
12+
//@[abort-full] no-prefer-dynamic
13+
//@[abort-full] exec-env:RUST_BACKTRACE=full
14+
15+
//@[unwind-zero] compile-flags: -Cpanic=unwind
16+
//@[unwind-zero] exec-env:RUST_BACKTRACE=0
17+
18+
//@[unwind-one] compile-flags: -Cpanic=unwind
19+
//@[unwind-one] exec-env:RUST_BACKTRACE=1
20+
21+
//@[unwind-full] compile-flags: -Cpanic=unwind
22+
//@[unwind-full] exec-env:RUST_BACKTRACE=full
23+
124
//@ run-fail
225
//@ error-pattern:moop
326
//@ needs-subprocess

0 commit comments

Comments
 (0)