From 2072be5bf9e4ffb4c1b1180193041b953de840a0 Mon Sep 17 00:00:00 2001 From: Ralf Jung Date: Thu, 31 Oct 2024 08:08:21 +0100 Subject: [PATCH] check if using an absolute dir here helps on Windows --- tests/testsuite/directory.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/testsuite/directory.rs b/tests/testsuite/directory.rs index 4c13565415e..7d58ccb44cf 100644 --- a/tests/testsuite/directory.rs +++ b/tests/testsuite/directory.rs @@ -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)