Skip to content

Commit 36ae52f

Browse files
committed
Condition unwinding tests on cfg(panic = "unwind")
1 parent 42bec96 commit 36ae52f

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

tokio/tests/sync_broadcast.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,7 @@ fn capacity_too_big() {
291291
}
292292

293293
#[test]
294+
#[cfg(panic = "unwind")]
294295
#[cfg(not(tokio_wasm))] // wasm currently doesn't support unwinding
295296
fn panic_in_clone() {
296297
use std::panic::{self, AssertUnwindSafe};

tokio/tests/sync_watch.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,6 +213,7 @@ fn reopened_after_subscribe() {
213213
}
214214

215215
#[test]
216+
#[cfg(panic = "unwind"]
216217
#[cfg(not(tokio_wasm))] // wasm currently doesn't support unwinding
217218
fn send_modify_panic() {
218219
let (tx, mut rx) = watch::channel("one");

0 commit comments

Comments
 (0)