Skip to content

Commit

Permalink
Rollup merge of rust-lang#135823 - ferrocene:ja-gh135819, r=jieyouxu
Browse files Browse the repository at this point in the history
make UI tests that use `--test` work on panic=abort targets

By passing `-Zpanic_abort_test`.

fixes rust-lang#135819
  • Loading branch information
jieyouxu authored Jan 22, 2025
2 parents 28eb51e + ece8b0c commit 128e9d2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
//@ compile-flags: --test
// -Zpanic_abort_tests makes this test work on panic=abort targets and
// it's a no-op on panic=unwind targets
//@ 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,6 @@
//@ compile-flags: --test
// -Zpanic_abort_tests makes this test work on panic=abort targets and
// it's a no-op on panic=unwind targets
//@ compile-flags: --test -Zpanic_abort_tests
// ignore-tidy-linelength
//@ run-pass

Expand Down

0 comments on commit 128e9d2

Please sign in to comment.