Skip to content

Commit

Permalink
Skip platforms without unwinding support
Browse files Browse the repository at this point in the history
  • Loading branch information
c410-f3r committed Oct 3, 2021
1 parent 355c7e9 commit 91ad91e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions library/core/tests/array.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ fn array_try_from_fn() {
assert_eq!(another_array, Err(SomeError::Foo));
}

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

#[cfg(not(panic = "abort"))]
#[test]
fn array_try_from_fn_drops_inserted_elements_on_panic() {
static DROP_COUNTER: AtomicUsize = AtomicUsize::new(0);
Expand Down

0 comments on commit 91ad91e

Please sign in to comment.