Skip to content

Commit 0a71873

Browse files
committed
panic_main.rs panic=unwind tests needs unwinding
Only run the panic=unwind tests on platforms that support unwinding.
1 parent 8c12d76 commit 0a71873

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/ui/panics/panic-main.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,15 @@
1414

1515
//@[unwind-zero] compile-flags: -Cpanic=unwind
1616
//@[unwind-zero] exec-env:RUST_BACKTRACE=0
17+
//@[unwind-zero] needs-unwind
1718

1819
//@[unwind-one] compile-flags: -Cpanic=unwind
1920
//@[unwind-one] exec-env:RUST_BACKTRACE=1
21+
//@[unwind-one] needs-unwind
2022

2123
//@[unwind-full] compile-flags: -Cpanic=unwind
2224
//@[unwind-full] exec-env:RUST_BACKTRACE=full
25+
//@[unwind-full] needs-unwind
2326

2427
//@ run-fail
2528
//@ error-pattern:moop

0 commit comments

Comments
 (0)