1
Fork 0
rust/tests/ui/attributes/unix_sigpipe/auxiliary/assert-inherit-sig_ign.rs
Martin Nordholts 4559e61dd7 Test #[unix_sigpipe = "inherit"] with both SIG_DFL and SIG_IGN
Add a test that fails if `#[unix_sigpipe = "inherit"]` wrongly results
in `SIGPIPE` being `SIG_DFL` if the parent has `SIG_IGN`. We have no
current test for this particular case.
2024-04-13 19:49:01 +02:00

8 lines
197 B
Rust

//@ aux-crate: sigpipe_utils=sigpipe-utils.rs
#![feature(unix_sigpipe)]
#[unix_sigpipe = "inherit"]
fn main() {
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Ignore);
}