2022-07-05 19:56:22 +02:00
|
|
|
//@ run-pass
|
|
|
|
//@ aux-build:sigpipe-utils.rs
|
2024-04-28 18:02:21 +02:00
|
|
|
//@ compile-flags: -Zon-broken-pipe=error
|
2024-04-18 16:50:06 -04:00
|
|
|
//@ only-unix because SIGPIPE is a unix thing
|
2024-02-09 08:47:47 +01:00
|
|
|
|
2022-07-05 19:56:22 +02:00
|
|
|
fn main() {
|
|
|
|
extern crate sigpipe_utils;
|
|
|
|
|
2024-04-28 18:02:21 +02:00
|
|
|
// `-Zon-broken-pipe=error` is active, so we expect SIGPIPE to be ignored.
|
2022-07-05 19:56:22 +02:00
|
|
|
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
|
|
|
|
}
|