From 7d20047874d7520c8ad4c742b19b14a08c26eb3a Mon Sep 17 00:00:00 2001 From: Tshepang Mbambo Date: Wed, 10 Jul 2024 01:00:55 +0200 Subject: [PATCH] do not run test where it cannot run This was seen on Ferrocene, where we have a custom test target that does not have unwind support --- alloc/src/slice/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/alloc/src/slice/tests.rs b/alloc/src/slice/tests.rs index 0156b9928dab4..0b972a13898eb 100644 --- a/alloc/src/slice/tests.rs +++ b/alloc/src/slice/tests.rs @@ -240,6 +240,7 @@ fn panic_safe() { #[test] #[cfg_attr(miri, ignore)] // Miri is too slow +#[cfg_attr(not(panic = "unwind"), ignore = "test requires unwinding support")] fn test_sort() { let mut rng = test_rng();