Skip to content

Commit 80d0ecc

Browse files
committed
tests: accept /cargo/registry remap prefix from cargo trim-paths
1 parent d8ee768 commit 80d0ecc

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

  • tests/run-make/remap-path-prefix-std

tests/run-make/remap-path-prefix-std/rmake.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ fn main() {
9393
// Check that remapped paths are present if the rlib has debug info.
9494
if stdout.contains("DW_TAG_compile_unit") {
9595
assert!(
96-
stdout.contains("/rustc/") || stdout.contains("/rust/deps"),
96+
stdout.contains("/rustc/")
97+
|| stdout.contains("/rust/deps")
98+
|| stdout.contains("/cargo/registry/"),
9799
"Expected remapped paths in dwarfdump output for {link_name}",
98100
);
99101
}

0 commit comments

Comments
 (0)