Skip to content

Commit fe178de

Browse files
committed
tests: Add RUST_BACKTRACE and -Cpanic revisions to panic-main.rs test
1 parent d00435f commit fe178de

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)