Skip to content

Commit 8722427

Browse files
committed
make UI tests that use --test work on panic=abort targets
using a second revision that also passes `-Zpanic_abort_test` the first revision, which does not use the `-Z` flag, is configured to only run on targets that support unwinding fixes #135819
1 parent b5741a3 commit 8722427

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
//@ compile-flags: --test
1+
//@ revisions: can_unwind
2+
//@ [can_unwind] compile-flags: --test
3+
//@ [can_unwind] needs-unwind
4+
//
5+
//@ revisions: cannot_unwind
6+
//@ [cannot_unwind] compile-flags: --test -Zpanic_abort_tests
7+
//
28
//@ run-pass
39

410
#![feature(core_intrinsics, generic_assert)]

tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
1-
//@ compile-flags: --test
1+
//@ revisions: can_unwind
2+
//@ [can_unwind] compile-flags: --test
3+
//@ [can_unwind] needs-unwind
4+
//
5+
//@ revisions: cannot_unwind
6+
//@ [cannot_unwind] compile-flags: --test -Zpanic_abort_tests
7+
//
28
// ignore-tidy-linelength
39
//@ run-pass
410

0 commit comments

Comments
 (0)