-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Cleanup: Migrate run-fail tests in src/test/ui from error-pattern to check-run-results #65865
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Comments
Another option is to do "check-run-results" automatically for all |
Move tests from `test/run-fail` to UI Fixes rust-lang#65440 cc rust-lang#65865 rust-lang#65506 r? @nikomatsakis
Use `check-run-results` for `run-fail` test stderr Fixes rust-lang#65865
Use `check-run-results` for `run-fail` test stderr Fixes rust-lang#65865
Use `check-run-results` for `run-fail` test stderr Fixes rust-lang#65865
Use `check-run-results` for `run-fail` test stderr Fixes rust-lang#65865
Based on the results of #133460, I'm not sure how worth it this is, as I think tests where we care about the exact stderr are fairly rare. We would definitely need a lot more normalization before doing this automatically |
compiletest triage: I'm not convinced switching I would be in favor of auditing some of these run-fail tests and sparingly add |
As tests are moved from
src/test/run-fail
tosrc/test/ui
#65440 the meaningof
// error-pattern
in ui tests becomes overloaded , since tests insrc/test/run-fail
match error patterns to executable output whilesrc/test/ui
tests match them to compiler output.The changes in #65759 enable such overloaded use: if test is expected to
compile successfully and will be run, the patterns are matched to executable
output, otherwise patterns are matched to the compiler output.
@petrochenkov suggested that it might be preferable to migrate those test to use check-run-result instead.
The text was updated successfully, but these errors were encountered: