Skip to content

Commit

Permalink
check if using an absolute dir here helps on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
RalfJung committed Oct 31, 2024
1 parent 4803061 commit 2072be5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/testsuite/directory.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,7 +805,7 @@ fn root_dir_diagnostics() {
// Crucially, the rustc error message below says `ws_root/...`, i.e.
// it is relative to our fake home, not to the workspace root.
p.cargo("check")
.arg("-Zroot-dir=.")
.arg(format!("-Zroot-dir={}", p.root().display()))
.arg("--manifest-path=ws_root/Cargo.toml")
.masquerade_as_nightly_cargo(&["-Zroot-dir"])
.with_status(101)
Expand Down

0 comments on commit 2072be5

Please sign in to comment.