make UI tests that use --test work on panic=abort targets

by adding `-Zpanic_abort_test`, which is a no-op on panic=unwind targets

fixes #135819
This commit is contained in:
Jorge Aparicio
2025-01-21 14:36:33 +01:00
parent b5741a36a8
commit ece8b0c94f
2 changed files with 6 additions and 2 deletions
@@ -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)]
@@ -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