Skip to content

Commit

Permalink
Make $SRC_DIR_REAL normalisation more robust
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeuw committed Dec 13, 2023
1 parent ff5934f commit b7eeb3c
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/tools/compiletest/src/runtest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4222,7 +4222,9 @@ impl<'test> TestCx<'test> {
normalize_path(parent_build_dir, "$BUILD_DIR");

// Real paths into the libstd/libcore
normalize_path(&parent_build_dir.parent().unwrap().join("library"), "$SRC_DIR_REAL");
let rust_src_dir =
&self.config.sysroot_base.join("lib/rustlib/src/rust").canonicalize().unwrap();
normalize_path(&rust_src_dir.join("library"), "$SRC_DIR_REAL");

if json {
// escaped newlines in json strings should be readable
Expand Down

0 comments on commit b7eeb3c

Please sign in to comment.