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 <jchecahi@redhat.com>
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
use std::io::Read;
|
||||
use std::process::{Command, Stdio};
|
||||
|
||||
use run_make_support::env_var;
|
||||
use run_make_support::{bare_rustc, rustdoc};
|
||||
|
||||
#[derive(Debug, PartialEq)]
|
||||
enum Binary {
|
||||
@@ -67,11 +67,13 @@ fn check_broken_pipe_handled_gracefully(bin: Binary, mut cmd: Command) {
|
||||
}
|
||||
|
||||
fn main() {
|
||||
let mut rustc = Command::new(env_var("RUSTC"));
|
||||
let mut rustc = bare_rustc();
|
||||
rustc.arg("--print=sysroot");
|
||||
let rustc = rustc.into_raw_command();
|
||||
check_broken_pipe_handled_gracefully(Binary::Rustc, rustc);
|
||||
|
||||
let mut rustdoc = Command::new(env_var("RUSTDOC"));
|
||||
let mut rustdoc = rustdoc();
|
||||
rustdoc.arg("--version");
|
||||
let rustdoc = rustdoc.into_raw_command();
|
||||
check_broken_pipe_handled_gracefully(Binary::Rustdoc, rustdoc);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user