Skip to content

Commit b4734b7

Browse files
committed
disable test on platforms that don't support unwinding
1 parent 8b51854 commit b4734b7

File tree

1 file changed

+4
-2
lines changed
  • library/core/tests/iter/adapters

1 file changed

+4
-2
lines changed

library/core/tests/iter/adapters/zip.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
use super::*;
22
use core::iter::*;
3-
use std::panic::catch_unwind;
4-
use std::panic::AssertUnwindSafe;
53

64
#[test]
75
fn test_zip_nth() {
@@ -235,7 +233,11 @@ fn test_zip_trusted_random_access_composition() {
235233
}
236234

237235
#[test]
236+
#[cfg(panic = "unwind")]
238237
fn test_zip_trusted_random_access_next_back_drop() {
238+
use std::panic::catch_unwind;
239+
use std::panic::AssertUnwindSafe;
240+
239241
let mut counter = 0;
240242

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

0 commit comments

Comments
 (0)