Skip to content

Commit dbe5d5c

Browse files
committed
check if using an absolute dir here helps on Windows
1 parent 4803061 commit dbe5d5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/testsuite/directory.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -805,7 +805,7 @@ fn root_dir_diagnostics() {
805805
// Crucially, the rustc error message below says `ws_root/...`, i.e.
806806
// it is relative to our fake home, not to the workspace root.
807807
p.cargo("check")
808-
.arg("-Zroot-dir=.")
808+
.arg(format!("-Zroot-dir={}", p.root()))
809809
.arg("--manifest-path=ws_root/Cargo.toml")
810810
.masquerade_as_nightly_cargo(&["-Zroot-dir"])
811811
.with_status(101)

0 commit comments

Comments
 (0)