Skip to content

Commit 91ad91e

Browse files
committed
Skip platforms without unwinding support
1 parent 355c7e9 commit 91ad91e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

library/core/tests/array.rs

+2
Original file line numberDiff line numberDiff line change
@@ -376,6 +376,7 @@ fn array_try_from_fn() {
376376
assert_eq!(another_array, Err(SomeError::Foo));
377377
}
378378

379+
#[cfg(not(panic = "abort"))]
379380
#[test]
380381
fn array_try_from_fn_drops_inserted_elements_on_err() {
381382
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
@@ -399,6 +400,7 @@ fn array_try_from_fn_drops_inserted_elements_on_err() {
399400
assert_eq!(DROP_COUNTER.load(Ordering::SeqCst), 2);
400401
}
401402

403+
#[cfg(not(panic = "abort"))]
402404
#[test]
403405
fn array_try_from_fn_drops_inserted_elements_on_panic() {
404406
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);

0 commit comments

Comments
 (0)