Skip to content

Commit d434741

Browse files
author
Jon Gjengset
committed
Windows doesn't split PATH by :
1 parent 6d930db commit d434741

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/cli-misc.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -373,7 +373,10 @@ fn rustup_doesnt_prepend_path_unnecessarily() {
373373
&["cargo", "--echo-path"],
374374
&[(
375375
"PATH",
376-
&format!("{}:{}", config.exedir.display(), cargo_home_bin.display()),
376+
std::env::join_paths([&config.exedir, &cargo_home_bin])
377+
.unwrap()
378+
.to_str()
379+
.unwrap(),
377380
)],
378381
&config.exedir,
379382
Some(&cargo_home_bin),

0 commit comments

Comments
 (0)