Skip to content

Commit 0cc392e

Browse files
committed
tests: cleanup tests/ui/process/sigpipe-should-be-ignored.rs
- Unwrap a must-use I/O result and remove `#![allow(unused_must_use)]`. - Replace `ignore-*` with `needs-subprocess`.
1 parent 7eaa6ec commit 0cc392e

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

tests/ui/process/sigpipe-should-be-ignored.rs

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,17 @@
11
//@ run-pass
2+
//@ needs-subprocess
23

3-
#![allow(unused_must_use)]
44
// Be sure that when a SIGPIPE would have been received that the entire process
55
// doesn't die in a ball of fire, but rather it's gracefully handled.
66

7-
//@ ignore-wasm32 no processes
8-
//@ ignore-sgx no processes
9-
107
use std::env;
118
use std::io::prelude::*;
129
use std::io;
1310
use std::process::{Command, Stdio};
1411

1512
fn test() {
1613
let _ = io::stdin().read_line(&mut String::new());
17-
io::stdout().write(&[1]);
14+
io::stdout().write(&[1]).unwrap();
1815
assert!(io::stdout().flush().is_err());
1916
}
2017

0 commit comments

Comments
 (0)