Skip to content

Commit cdb44b7

Browse files
authored
Rollup merge of #129194 - ChrisDenton:detect-src, r=Mark-Simulacrum
Fix bootstrap test `detect_src_and_out` on Windows Fixes #129188 by making sure it's properly testing the right path for the platform.
2 parents 4fe1e2b + 9a9cf2f commit cdb44b7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/bootstrap/src/core/config/tests.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ fn detect_src_and_out() {
9696
test(parse(""), None);
9797

9898
{
99-
let build_dir = if cfg!(windows) { Some("C:\\tmp") } else { Some("/tmp") };
100-
test(parse("build.build-dir = \"/tmp\""), build_dir);
99+
let build_dir = if cfg!(windows) { "C:\\tmp" } else { "/tmp" };
100+
test(parse(&format!("build.build-dir = '{build_dir}'")), Some(build_dir));
101101
}
102102
}
103103

0 commit comments

Comments
 (0)