about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCaio <c410.f3r@gmail.com>2021-10-03 12:25:23 -0300
committerCaio <c410.f3r@gmail.com>2021-10-03 12:25:23 -0300
commit91ad91efb68507d388aa7332dd458372893c2929 (patch)
tree59f4905cf71d8013d62d5941a70fe45bdae18aff
parent355c7e941557fcea12971a6bf2963af04695d385 (diff)
downloadrust-91ad91efb68507d388aa7332dd458372893c2929.tar.gz
rust-91ad91efb68507d388aa7332dd458372893c2929.zip
Skip platforms without unwinding support
-rw-r--r--library/core/tests/array.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/library/core/tests/array.rs b/library/core/tests/array.rs
index 6889fe9a19e..183f055baf1 100644
--- a/library/core/tests/array.rs
+++ b/library/core/tests/array.rs
@@ -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);
@@ -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);