tests/ui/runtime/on-broken-pipe/with-rustc_main.rs: Not needed so remove
It was added inddee45e1d7when SIGPIPE was controlled with an attribute on `fn main()` which meant it could also be combined with `#[rustc_main]`: #[unix_sigpipe = "sig_dfl"] #[rustc_main] fn rustc_main() { It stopped being neededcde0cde151when `#[unix_sigpipe = "..."]` was replaced by `-Zon-broken-pipe=...`. And it will not be needed when `-Zon-broken-pipe=...` is replaced by an Externally Implementable Item. Let's remove this test.
This commit is contained in:
parent
fcd630976c
commit
1132454616
1 changed files with 0 additions and 15 deletions
|
|
@ -1,15 +0,0 @@
|
||||||
//@ run-pass
|
|
||||||
//@ aux-build:sigpipe-utils.rs
|
|
||||||
//@ compile-flags: -Zon-broken-pipe=kill
|
|
||||||
//@ only-unix because SIGPIPE is a unix thing
|
|
||||||
|
|
||||||
#![feature(rustc_attrs)]
|
|
||||||
|
|
||||||
#[rustc_main]
|
|
||||||
fn rustc_main() {
|
|
||||||
extern crate sigpipe_utils;
|
|
||||||
|
|
||||||
// `-Zon-broken-pipe=kill` is active, so SIGPIPE handler shall be
|
|
||||||
// SIG_DFL. Note that we have a #[rustc_main], but it should still work.
|
|
||||||
sigpipe_utils::assert_sigpipe_handler(sigpipe_utils::SignalHandler::Default);
|
|
||||||
}
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue