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
by adding `-Zpanic_abort_test`, which is a no-op on panic=unwind targets

fixes #135819
  • Loading branch information
japaric committed Jan 21, 2025
1 parent b5741a3 commit ece8b0c
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 ece8b0c

Please sign in to comment.