Skip to content

Commit

Permalink
Condition unwinding tests on cfg(panic = "unwind")
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswailes committed Jan 19, 2023
1 parent 42bec96 commit 36ae52f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tokio/tests/sync_broadcast.rs
Expand Up @@ -291,6 +291,7 @@ fn capacity_too_big() {
}

#[test]
#[cfg(panic = "unwind")]
#[cfg(not(tokio_wasm))] // wasm currently doesn't support unwinding
fn panic_in_clone() {
use std::panic::{self, AssertUnwindSafe};
Expand Down
1 change: 1 addition & 0 deletions tokio/tests/sync_watch.rs
Expand Up @@ -213,6 +213,7 @@ fn reopened_after_subscribe() {
}

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

0 comments on commit 36ae52f

Please sign in to comment.