about summary refs log tree commit diff
path: root/tests/ui/runtime/on-broken-pipe/kill.rs
blob: 748e53ffcdbeec808cd3573567eb107b8fd1a6fa (plain)
1
2
3
4
5
6
7
8
9
10
11
12
//@ run-pass
//@ aux-build:sigpipe-utils.rs
//@ compile-flags: -Zon-broken-pipe=kill
//@ 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);
}