Skip to content

Commit 84ed40d

Browse files
jieyouxuJesus Checa Hidalgo
and
Jesus Checa Hidalgo
committed
tests: fix broken-pipe-no-ice to use bare_rustc/rustc
Where host compiler runtime libs are properly configured, instead of raw `RUSTC`/`RUSTDOC` commands. Co-authored-by: Jesus Checa Hidalgo <[email protected]>
1 parent d9f513f commit 84ed40d

File tree

1 file changed

+5
-3
lines changed
  • tests/run-make/broken-pipe-no-ice

1 file changed

+5
-3
lines changed

tests/run-make/broken-pipe-no-ice/rmake.rs

+5-3
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use std::io::Read;
1515
use std::process::{Command, Stdio};
1616

17-
use run_make_support::env_var;
17+
use run_make_support::{bare_rustc, rustdoc};
1818

1919
#[derive(Debug, PartialEq)]
2020
enum Binary {
@@ -67,11 +67,13 @@ fn check_broken_pipe_handled_gracefully(bin: Binary, mut cmd: Command) {
6767
}
6868

6969
fn main() {
70-
let mut rustc = Command::new(env_var("RUSTC"));
70+
let mut rustc = bare_rustc();
7171
rustc.arg("--print=sysroot");
72+
let rustc = rustc.into_raw_command();
7273
check_broken_pipe_handled_gracefully(Binary::Rustc, rustc);
7374

74-
let mut rustdoc = Command::new(env_var("RUSTDOC"));
75+
let mut rustdoc = rustdoc();
7576
rustdoc.arg("--version");
77+
let rustdoc = rustdoc.into_raw_command();
7678
check_broken_pipe_handled_gracefully(Binary::Rustdoc, rustdoc);
7779
}

0 commit comments

Comments
 (0)