We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fb48c55 commit 5279048Copy full SHA for 5279048
src/test/ui/command-pre-exec.rs
@@ -10,7 +10,7 @@
10
extern crate libc;
11
12
use std::env;
13
-use std::io::Error;
+use std::io::{self, Error, Write};
14
use std::os::unix::process::CommandExt;
15
use std::process::Command;
16
use std::sync::atomic::{AtomicUsize, Ordering};
@@ -35,6 +35,7 @@ fn main() {
35
.arg("test1")
36
.pre_exec(|| {
37
println!("hello");
38
+ io::stdout().flush().unwrap();
39
Ok(())
40
})
41
.output()
src/test/ui/issues/issue-30490.rs
@@ -57,6 +57,7 @@ fn main() {
57
58
stdout().write_all("parent stdout\n".as_bytes()).expect("failed to write to stdout");
59
stderr().write_all("parent stderr\n".as_bytes()).expect("failed to write to stderr");
60
+ stdout().flush().expect("failed to flush stdout");
61
62
let child = {
63
Command::new(name)
0 commit comments