Skip to content

Commit

Permalink
tests: cleanup tests/ui/process/issue-14456.rs
Browse files Browse the repository at this point in the history
- Remove unnecessary `mut` and remove `#![allow(unused_mut)]`.
- Replace `ignore-*` with `needs-process`.
  • Loading branch information
jieyouxu committed Jan 23, 2025
1 parent b617aae commit c7c1e4d
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/ui/process/issue-14456.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
//@ run-pass
#![allow(unused_mut)]
//@ ignore-wasm32 no processes
//@ ignore-sgx no processes
//@ needs-subprocess

use std::env;
use std::io::prelude::*;
Expand All @@ -20,7 +18,7 @@ fn main() {
fn child() {
writeln!(&mut io::stdout(), "foo").unwrap();
writeln!(&mut io::stderr(), "bar").unwrap();
let mut stdin = io::stdin();
let stdin = io::stdin();
let mut s = String::new();
stdin.lock().read_line(&mut s).unwrap();
assert_eq!(s.len(), 0);
Expand Down

0 comments on commit c7c1e4d

Please sign in to comment.