Skip to content

Commit ec841f5

Browse files
committed
Fix running rustc tests
There are still two failures due to incorrect test annotations
1 parent a298c69 commit ec841f5

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

scripts/setup_rust_fork.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,15 @@ diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/ru
2929
index 8431aa7b818..a3ff7e68ce5 100644
3030
--- a/src/tools/compiletest/src/runtest.rs
3131
+++ b/src/tools/compiletest/src/runtest.rs
32-
@@ -3489,11 +3489,7 @@ fn normalize_output(&self, output: &str, custom_rules: &[(String, String)]) -> S
33-
.join("library");
34-
normalize_path(&src_dir, "$(echo '$SRC_DIR')");
32+
@@ -3489,12 +3489,7 @@ fn normalize_output(&self, output: &str, custom_rules: &[(String, String)]) -> S
33+
let compiler_src_dir = base_dir.join("compiler");
34+
normalize_path(&compiler_src_dir, "$(echo '$COMPILER_DIR')");
3535
3636
- if let Some(virtual_rust_source_base_dir) =
3737
- option_env!("CFG_VIRTUAL_RUST_SOURCE_BASE_DIR").map(PathBuf::from)
3838
- {
3939
- normalize_path(&virtual_rust_source_base_dir.join("library"), "$(echo '$SRC_DIR')");
40+
- normalize_path(&virtual_rust_source_base_dir.join("compiler"), "$(echo '$COMPILER_DIR')");
4041
- }
4142
+ normalize_path(&Path::new("$(cd ../build_sysroot/sysroot_src/library; pwd)"), "$(echo '$SRC_DIR')");
4243

scripts/test_rustc_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ rm src/test/ui/consts/issue-33537.rs # same
8989
rm -r src/test/run-make/emit-shared-files # requires the rustdoc executable in build/bin/
9090
rm -r src/test/run-make/unstable-flag-required # same
9191
rm -r src/test/run-make/rustdoc-* # same
92+
rm -r src/test/run-make/remap-path-prefix-dwarf # requires llvm-dwarfdump
9293

9394
# genuine bugs
9495
# ============

0 commit comments

Comments
 (0)