Skip to content

Commit 34c8228

Browse files
committed
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
1 parent 6c85d31 commit 34c8228

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/tests/lazy.rs

+1
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ fn lazy_type_inference() {
114114
}
115115

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

0 commit comments

Comments
 (0)