Skip to content

Commit

Permalink
fix expected path-separators on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Skgland authored and rami3l committed Jun 3, 2024
1 parent 3d7a292 commit 73c6b19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/suite/cli_v2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -305,10 +305,19 @@ fn bad_manifest() {
setup(&|config| {
// install some toolchain
config.expect_ok(&["rustup", "update", "nightly"]);

#[cfg(not(target_os = "windows"))]
let path = format!(
"toolchains/nightly-{}/lib/rustlib/multirust-channel-manifest.toml",
this_host_triple(),
);

#[cfg(target_os = "windows")]
let path = format!(
r"toolchains\nightly-{}\lib/rustlib\multirust-channel-manifest.toml",
this_host_triple(),
);

assert!(config.rustupdir.has(&path));
let path = config.rustupdir.join(&path);

Expand Down

0 comments on commit 73c6b19

Please sign in to comment.