tests: condition unwinding tests on cfg(panic = "unwind") (#5384)

This commit is contained in:
Chris Wailes
2023-01-21 11:12:24 +01:00
committed by GitHub
parent f3f8e4f17f
commit c90757f07a
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -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};
+1
View File
@@ -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");