Skip to content

Commit

Permalink
disable test on platforms that don't support unwinding
Browse files Browse the repository at this point in the history
  • Loading branch information
the8472 committed Jun 20, 2021
1 parent 8b51854 commit b4734b7
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions library/core/tests/iter/adapters/zip.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
use super::*;
use core::iter::*;
use std::panic::catch_unwind;
use std::panic::AssertUnwindSafe;

#[test]
fn test_zip_nth() {
Expand Down Expand Up @@ -235,7 +233,11 @@ fn test_zip_trusted_random_access_composition() {
}

#[test]
#[cfg(panic = "unwind")]
fn test_zip_trusted_random_access_next_back_drop() {
use std::panic::catch_unwind;
use std::panic::AssertUnwindSafe;

let mut counter = 0;

let it = [42].iter().map(|e| {
Expand Down

0 comments on commit b4734b7

Please sign in to comment.