Skip to content

Commit

Permalink
do not run test where it cannot run
Browse files Browse the repository at this point in the history
This was seen on Ferrocene, where we have a custom test target that does not have unwind support
  • Loading branch information
tshepang committed Jul 9, 2024
1 parent 7fdefb8 commit af3aa36
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/alloc/src/slice/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down

0 comments on commit af3aa36

Please sign in to comment.