diff options
Diffstat (limited to 'vendor/tokio/tests/signal_no_rt.rs')
-rw-r--r-- | vendor/tokio/tests/signal_no_rt.rs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/vendor/tokio/tests/signal_no_rt.rs b/vendor/tokio/tests/signal_no_rt.rs new file mode 100644 index 000000000..b0f32b2d1 --- /dev/null +++ b/vendor/tokio/tests/signal_no_rt.rs @@ -0,0 +1,11 @@ +#![warn(rust_2018_idioms)] +#![cfg(feature = "full")] +#![cfg(unix)] + +use tokio::signal::unix::{signal, SignalKind}; + +#[test] +#[should_panic] +fn no_runtime_panics_creating_signals() { + let _ = signal(SignalKind::hangup()); +} |