mirror of
https://github.com/tokio-rs/tokio.git
synced 2026-08-22 00:00:11 +02:00
tests: condition unwinding tests on cfg(panic = "unwind") (#5384)
This commit is contained in:
@@ -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};
|
||||
|
||||
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user