diff options
| author | Waffle Lapkin <waffle.lapkin@gmail.com> | 2025-07-25 15:12:44 +0200 |
|---|---|---|
| committer | Waffle Lapkin <waffle.lapkin@gmail.com> | 2025-07-25 22:06:01 +0200 |
| commit | 25036f52a00586774cc84cd9415b88325fcc5930 (patch) | |
| tree | 2bb8a5c1636022971c005a504df5272adb02d38d | |
| parent | b56aaec52bc0fa35591a872fb4aac81f606e265c (diff) | |
| download | rust-25036f52a00586774cc84cd9415b88325fcc5930.tar.gz rust-25036f52a00586774cc84cd9415b88325fcc5930.zip | |
canonicalize build root in `tests/run-make/linker-warning`
| -rw-r--r-- | tests/run-make/linker-warning/rmake.rs | 4 |
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\"") |
