Skip to content

Commit e7d8c62

Browse files
committed
test(trim-path): match the actual sanitized paths
The old wildcard matched too much and didn't really show whether the paths were sanitized.
1 parent 64a1246 commit e7d8c62

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testsuite/profile_trim_paths.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ fn registry_dependency() {
227227
p.cargo("run --verbose -Ztrim-paths")
228228
.masquerade_as_nightly_cargo(&["-Ztrim-paths"])
229229
.with_stdout_data(str![[r#"
230-
[..]/bar-0.0.1/src/lib.rs
230+
-[..]/bar-0.0.1/src/lib.rs
231231
232232
"#]]) // Omit the hash of Source URL
233233
.with_stderr_data(str![[r#"
@@ -279,7 +279,7 @@ fn git_dependency() {
279279
p.cargo("run --verbose -Ztrim-paths")
280280
.masquerade_as_nightly_cargo(&["-Ztrim-paths"])
281281
.with_stdout_data(str![[r#"
282-
[..]/[..]/src/lib.rs
282+
bar-[..]/[..]/src/lib.rs
283283
284284
"#]]) // Omit the hash of Source URL and commit
285285
.with_stderr_data(str![[r#"

0 commit comments

Comments
 (0)