diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-08-19 20:14:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-19 20:14:56 +0200 |
| commit | cdb44b7b150e4cd72eabc37744abe7095f91e398 (patch) | |
| tree | c782f53b5c7618240ede9c7f6edb5e6532f489d2 /src/bootstrap | |
| parent | 4fe1e2bd5bf5a6f1cb245f161a5e9d315766f103 (diff) | |
| parent | 9a9cf2fd4ce7adee14a90c3af2623902f29486fb (diff) | |
| download | rust-cdb44b7b150e4cd72eabc37744abe7095f91e398.tar.gz rust-cdb44b7b150e4cd72eabc37744abe7095f91e398.zip | |
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.
Diffstat (limited to 'src/bootstrap')
| -rw-r--r-- | src/bootstrap/src/core/config/tests.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/bootstrap/src/core/config/tests.rs b/src/bootstrap/src/core/config/tests.rs index 378d069672f..219c5a6ec91 100644 --- a/src/bootstrap/src/core/config/tests.rs +++ b/src/bootstrap/src/core/config/tests.rs @@ -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)); } } |
