diff options
| author | Matthias Krüger <476013+matthiaskrgr@users.noreply.github.com> | 2025-09-15 06:03:48 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-09-15 06:03:48 +0200 |
| commit | 0a14ae0fad50f81ff20dd91fa2c44d6d3cad48d2 (patch) | |
| tree | fcfe4384f549404920ee1c0c6dd91f11a19e7734 /compiler/rustc_middle/src/error.rs | |
| parent | 32c045ecd1984d065f23b83080ad052d4e45896c (diff) | |
| parent | a48c8e337d1717ceeaa930a0a804374aa2e66419 (diff) | |
| download | rust-0a14ae0fad50f81ff20dd91fa2c44d6d3cad48d2.tar.gz rust-0a14ae0fad50f81ff20dd91fa2c44d6d3cad48d2.zip | |
Rollup merge of #146501 - Enselic:x-test-filter, r=Mark-Simulacrum
compiletest: Fix `--exact` test filtering
This fix only changes the behavior when using `--exact` test filtering, which
was quite broken. Before this fix, the following runs 0 tests:
$ ./x test tests/run-make/crate-loading -- --exact
running 0 tests
test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 431 filtered out; finished in 24.95µs
With the fix the desired test is run:
$ ./x test tests/run-make/crate-loading -- --exact
running 1 tests
test [run-make] tests/run-make/crate-loading ... ok
Without `--exact` the set of run tests is unchanged. This still runs "too many" (cc rust-lang/rust#134341) tests
$ ./x test tests/run-make/crate-loading
running 3 tests
test [run-make] tests/run-make/crate-loading-crate-depends-on-itself ... ok
test [run-make] tests/run-make/crate-loading-multiple-candidates ... ok
test [run-make] tests/run-make/crate-loading ... ok
This still runs the one and only right test
$ ./x test tests/ui/lint/unused/unused-allocation.rs
running 1 tests
test [ui] tests/ui/lint/unused/unused-allocation.rs ... ok
### Notes
- I have not verified this on Windows which treats paths differently (but I see no reason why it should not work since my code should be platform agnostic).
Diffstat (limited to 'compiler/rustc_middle/src/error.rs')
0 files changed, 0 insertions, 0 deletions
