about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWaffle Lapkin <waffle.lapkin@gmail.com>2025-07-25 15:12:44 +0200
committerWaffle Lapkin <waffle.lapkin@gmail.com>2025-07-25 22:06:01 +0200
commit25036f52a00586774cc84cd9415b88325fcc5930 (patch)
tree2bb8a5c1636022971c005a504df5272adb02d38d
parentb56aaec52bc0fa35591a872fb4aac81f606e265c (diff)
downloadrust-25036f52a00586774cc84cd9415b88325fcc5930.tar.gz
rust-25036f52a00586774cc84cd9415b88325fcc5930.zip
canonicalize build root in `tests/run-make/linker-warning`
-rw-r--r--tests/run-make/linker-warning/rmake.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/run-make/linker-warning/rmake.rs b/tests/run-make/linker-warning/rmake.rs
index 57b68c65930..9ea706af503 100644
--- a/tests/run-make/linker-warning/rmake.rs
+++ b/tests/run-make/linker-warning/rmake.rs
@@ -64,7 +64,9 @@ fn main() {
             .normalize(r#"/rustc[^/_-]*/"#, "/rustc/")
             .normalize("libpanic_abort", "libpanic_unwind")
             .normalize(
-                regex::escape(run_make_support::build_root().to_str().unwrap()),
+                regex::escape(
+                    run_make_support::build_root().canonicalize().unwrap().to_str().unwrap(),
+                ),
                 "/build-root",
             )
             .normalize(r#""[^"]*\/symbols.o""#, "\"/symbols.o\"")