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