blob: ffcc6651c4d3be4ba34fc8139166387582379c5d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#![warn(rust_2018_idioms)]
#![cfg(feature = "full")]
#![cfg(unix)]
use tokio::signal::unix::{signal, SignalKind};
#[cfg_attr(tokio_wasi, ignore = "Wasi does not support panic recovery")]
#[test]
#[should_panic]
fn no_runtime_panics_creating_signals() {
let _ = signal(SignalKind::hangup());
}
|