about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJakub Beránek <berykubik@gmail.com>2024-06-08 15:40:07 +0200
committerJakub Beránek <berykubik@gmail.com>2024-06-08 15:40:43 +0200
commitb10a404199f0c837445e2c8692a6e4f31b8d6789 (patch)
tree70df445e1035ee557d7b6adf5560de75a270968e
parent5844b679f3289aa50fda5463667de1d63b7d41d1 (diff)
downloadrust-b10a404199f0c837445e2c8692a6e4f31b8d6789.tar.gz
rust-b10a404199f0c837445e2c8692a6e4f31b8d6789.zip
Fix windows test
-rw-r--r--tests/run-make/windows-binary-no-external-deps/rmake.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/run-make/windows-binary-no-external-deps/rmake.rs b/tests/run-make/windows-binary-no-external-deps/rmake.rs
index 73c1dfcdfa8..61fdb202221 100644
--- a/tests/run-make/windows-binary-no-external-deps/rmake.rs
+++ b/tests/run-make/windows-binary-no-external-deps/rmake.rs
@@ -2,7 +2,7 @@
 //! a "hello world" application by setting `PATH` to `C:\Windows\System32`.
 //@ only-windows
 
-use run_make_support::{env_var, rustc};
+use run_make_support::{cwd, env_var, rustc};
 use std::path::PathBuf;
 use std::process::Command;
 
@@ -12,7 +12,7 @@ fn main() {
     let windows_dir = env_var("SystemRoot");
     let system32: PathBuf = [&windows_dir, "System32"].iter().collect();
     // Note: This does not use the support wrappers so that we can precisely control the PATH
-    let exe = "hello.exe";
+    let exe = cwd().join("hello.exe");
     let status = Command::new(exe).env("PATH", &system32).spawn().unwrap().wait().unwrap();
     if !status.success() {
         panic!("Command failed!\noutput status: `{status}`");