[PATCH] Fix UI tests with dist-vendored dependencies
authorJosh Stone <jistone@redhat.com>
Mon, 8 Apr 2024 22:04:44 +0000 (15:04 -0700)
committerEmilio Pozuelo Monfort <pochu@debian.org>
Wed, 28 Aug 2024 14:44:23 +0000 (16:44 +0200)
commita849dacd48123b0f2cce3053673fb8003ec92fd0
treeffea4ddd7538f45e3e12860e4a298bd2caf2dbe9
parent643a9a804b2ab5db923bf303ee2575e1c2fcdfcb
[PATCH] Fix UI tests with dist-vendored dependencies

There is already a workaround in `compiletest` to deal with custom
`CARGO_HOME` using `-Zignore-directory-in-diagnostics-source-blocks={}`.
A similar need exists when dependencies come from the local `vendor`
directory, which distro builds often use, so now we ignore that too.

Also, `issue-21763.rs` was normalizing `hashbrown-` paths, presumably
expecting a version suffix, but the vendored path doesn't include the
version. Now that matches `[\\/]hashbrown` instead.

Forwarded: yes

Gbp-Pq: Topic upstream
Gbp-Pq: Name u-avoid-blessing-cargo-deps-s-source-code-in-ui-tests.patch
src/tools/compiletest/src/runtest.rs
tests/ui/issues/issue-21763.rs