From af3aa36d60746f8fac262cd5a3d32f23d60f36ea 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 --- library/alloc/src/slice/tests.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/alloc/src/slice/tests.rs b/library/alloc/src/slice/tests.rs index 0156b9928dab4..0b972a13898eb 100644 --- a/library/alloc/src/slice/tests.rs +++ b/library/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();