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