Skip to content

Commit

Permalink
tests: condition unwinding tests on cfg(panic = "unwind") (#5384)
Browse files Browse the repository at this point in the history
  • Loading branch information
chriswailes committed Jan 21, 2023
1 parent f3f8e4f commit c90757f
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 c90757f

Please sign in to comment.