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.
This commit is contained in:
Matthias Krüger 2024-08-19 20:14:56 +02:00 committed by GitHub
commit cdb44b7b15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -96,8 +96,8 @@ fn detect_src_and_out() {
test(parse(""), None);
{
let build_dir = if cfg!(windows) { Some("C:\\tmp") } else { Some("/tmp") };
test(parse("build.build-dir = \"/tmp\""), build_dir);
let build_dir = if cfg!(windows) { "C:\\tmp" } else { "/tmp" };
test(parse(&format!("build.build-dir = '{build_dir}'")), Some(build_dir));
}
}