We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
tests/ui/process/sigpipe-should-be-ignored.rs
1 parent 7eaa6ec commit 0cc392eCopy full SHA for 0cc392e
tests/ui/process/sigpipe-should-be-ignored.rs
@@ -1,20 +1,17 @@
1
//@ run-pass
2
+//@ needs-subprocess
3
-#![allow(unused_must_use)]
4
// Be sure that when a SIGPIPE would have been received that the entire process
5
// doesn't die in a ball of fire, but rather it's gracefully handled.
6
7
-//@ ignore-wasm32 no processes
8
-//@ ignore-sgx no processes
9
-
10
use std::env;
11
use std::io::prelude::*;
12
use std::io;
13
use std::process::{Command, Stdio};
14
15
fn test() {
16
let _ = io::stdin().read_line(&mut String::new());
17
- io::stdout().write(&[1]);
+ io::stdout().write(&[1]).unwrap();
18
assert!(io::stdout().flush().is_err());
19
}
20
0 commit comments