Skip to content

Commit

Permalink
make UI tests that use --test work on panic=abort targets
Browse files Browse the repository at this point in the history
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
  • Loading branch information
japaric committed Jan 21, 2025
1 parent b5741a3 commit 8722427
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
//@ compile-flags: --test
//@ revisions: can_unwind
//@ [can_unwind] compile-flags: --test
//@ [can_unwind] needs-unwind
//
//@ revisions: cannot_unwind
//@ [cannot_unwind] compile-flags: --test -Zpanic_abort_tests
//
//@ run-pass

#![feature(core_intrinsics, generic_assert)]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
//@ compile-flags: --test
//@ revisions: can_unwind
//@ [can_unwind] compile-flags: --test
//@ [can_unwind] needs-unwind
//
//@ revisions: cannot_unwind
//@ [cannot_unwind] compile-flags: --test -Zpanic_abort_tests
//
// ignore-tidy-linelength
//@ run-pass

Expand Down

0 comments on commit 8722427

Please sign in to comment.