Skip to content

Commit 73c6b19

Browse files
Skglandrami3l
authored andcommitted
fix expected path-separators on windows
1 parent 3d7a292 commit 73c6b19

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tests/suite/cli_v2.rs

+9
Original file line numberDiff line numberDiff line change
@@ -305,10 +305,19 @@ fn bad_manifest() {
305305
setup(&|config| {
306306
// install some toolchain
307307
config.expect_ok(&["rustup", "update", "nightly"]);
308+
309+
#[cfg(not(target_os = "windows"))]
308310
let path = format!(
309311
"toolchains/nightly-{}/lib/rustlib/multirust-channel-manifest.toml",
310312
this_host_triple(),
311313
);
314+
315+
#[cfg(target_os = "windows")]
316+
let path = format!(
317+
r"toolchains\nightly-{}\lib/rustlib\multirust-channel-manifest.toml",
318+
this_host_triple(),
319+
);
320+
312321
assert!(config.rustupdir.has(&path));
313322
let path = config.rustupdir.join(&path);
314323

0 commit comments

Comments
 (0)