Fix bootstrap test detect_src_and_out on Windows

This commit is contained in:
Chris Denton 2024-08-17 12:29:28 +00:00
parent 426a60abc2
commit 9a9cf2fd4c
No known key found for this signature in database
GPG Key ID: 713472F2F45627DE

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));
}
}