rust/tests/ui/runtime/on-broken-pipe/kill.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
390 B
Rust
Raw Normal View History

//@ run-pass
//@ aux-build:sigpipe-utils.rs
//@ compile-flags: -Zon-broken-pipe=kill
2024-04-18 15:50:06 -05:00
//@ only-unix because SIGPIPE is a unix thing
fn main() {
extern crate sigpipe_utils;
// `-Zon-broken-pipe=kill` is active, so SIGPIPE shall NOT be ignored, instead
// the default handler shall be installed
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Default);
}