Skip to content

Commit 3ddafbc

Browse files
committed
Fix windows test
1 parent 5844b67 commit 3ddafbc

File tree

1 file changed

+2
-2
lines changed
  • tests/run-make/windows-binary-no-external-deps

1 file changed

+2
-2
lines changed

tests/run-make/windows-binary-no-external-deps/rmake.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
//! a "hello world" application by setting `PATH` to `C:\Windows\System32`.
33
//@ only-windows
44

5-
use run_make_support::{env_var, rustc};
5+
use run_make_support::{env_var, rustc, cwd};
66
use std::path::PathBuf;
77
use std::process::Command;
88

@@ -12,7 +12,7 @@ fn main() {
1212
let windows_dir = env_var("SystemRoot");
1313
let system32: PathBuf = [&windows_dir, "System32"].iter().collect();
1414
// Note: This does not use the support wrappers so that we can precisely control the PATH
15-
let exe = "hello.exe";
15+
let exe = cwd().join("hello.exe");
1616
let status = Command::new(exe).env("PATH", &system32).spawn().unwrap().wait().unwrap();
1717
if !status.success() {
1818
panic!("Command failed!\noutput status: `{status}`");

0 commit comments

Comments
 (0)