about summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorJieyou Xu <jieyouxu@outlook.com>2025-05-09 19:52:36 +0800
committerJieyou Xu <jieyouxu@outlook.com>2025-05-09 19:54:43 +0800
commit84ed40dc38cff2a25f0d6e6be1f11b3c1a12133d (patch)
tree938c42b5ae1daa5d74211cc52a56132e3cb34ea4 /tests
parentd9f513f0dafd6a5bc9340c77d3f86f727ff52824 (diff)
downloadrust-84ed40dc38cff2a25f0d6e6be1f11b3c1a12133d.tar.gz
rust-84ed40dc38cff2a25f0d6e6be1f11b3c1a12133d.zip
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>
Diffstat (limited to 'tests')
-rw-r--r--tests/run-make/broken-pipe-no-ice/rmake.rs8
1 files changed, 5 insertions, 3 deletions
diff --git a/tests/run-make/broken-pipe-no-ice/rmake.rs b/tests/run-make/broken-pipe-no-ice/rmake.rs
index 0521b395020..b0a28b6c899 100644
--- a/tests/run-make/broken-pipe-no-ice/rmake.rs
+++ b/tests/run-make/broken-pipe-no-ice/rmake.rs
@@ -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);
 }