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
amanjeev committed Oct 17, 2024
1 parent 6c85d31 commit 34c8228
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/tests/lazy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ fn lazy_type_inference() {
}

#[test]
#[cfg(panic = "unwind")]
#[should_panic = "LazyCell instance has previously been poisoned"]
fn lazy_force_mut_panic() {
let mut lazy = LazyCell::<String>::new(|| panic!());
Expand Down

0 comments on commit 34c8228

Please sign in to comment.