diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2025-01-22 19:29:41 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-22 19:29:41 +0100 |
| commit | e4c144b7797f36bce376d60ff0318ed07a5e3d99 (patch) | |
| tree | b71152f5c7f402fe74367bf26f2661f73789f2b2 /tests | |
| parent | ef0e6863c6abcfccb9e5afafaffa7492004c7ae0 (diff) | |
| parent | ece8b0c94fae7124696f8a613538e333cd1b0b71 (diff) | |
| download | rust-e4c144b7797f36bce376d60ff0318ed07a5e3d99.tar.gz rust-e4c144b7797f36bce376d60ff0318ed07a5e3d99.zip | |
Rollup merge of #135823 - ferrocene:ja-gh135819, r=jieyouxu
make UI tests that use `--test` work on panic=abort targets By passing `-Zpanic_abort_test`. fixes #135819
Diffstat (limited to 'tests')
2 files changed, 6 insertions, 2 deletions
diff --git a/tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs index 37d94830db2..2a27164f9cb 100644 --- a/tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs +++ b/tests/ui/macros/rfc-2011-nicer-assert-messages/assert-with-custom-errors-does-not-create-unnecessary-code.rs @@ -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)] diff --git a/tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs b/tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs index 86cc7adb90d..254d59076e5 100644 --- a/tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs +++ b/tests/ui/macros/rfc-2011-nicer-assert-messages/feature-gate-generic_assert.rs @@ -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 |
