aboutsummaryrefslogtreecommitdiff
path: root/patches/panic_unwind_tests.patch
blob: adf431e28e05f4a7b3234cb3598353561cbe50d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
diff --git a/tests/sync_broadcast.rs b/tests/sync_broadcast.rs
index 9aa3484..53ee7d8 100644
--- a/tests/sync_broadcast.rs
+++ b/tests/sync_broadcast.rs
@@ -292,6 +292,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};

diff --git a/tests/sync_watch.rs b/tests/sync_watch.rs
index 34f9b78..e8eacce 100644
--- a/tests/sync_watch.rs
+++ b/tests/sync_watch.rs
@@ -214,6 +214,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");