You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rollup merge of #155589 - Zalathar:cpass, r=jieyouxu
Forbid `check-pass`/`build-pass`/`run-pass` directives in incremental tests
- Follow-up to rust-lang/rust#155474
---
This PR forbids the use of `//@ check-pass`, `//@ build-pass`, and `//@ run-pass` directives in incremental tests. Tests that would have used those directives should use a revision name beginning with `cpass`/`bpass`/`rpass` instead.
(The `*-fail` directives are already forbidden in incremental tests.)
Existing incremental tests that used the `check-pass` and `build-pass` directives have been migrated. To allow migration of the check-pass tests, this PR also adds support for revision names beginning with `cpass`. No incremental tests were using `run-pass`.
---
Several of the migrated `build-pass` tests have a FIXME indicating that they could potentially be migrated to `check-pass` instead. This PR does not perform that migration.
In the future, I intend to do more cleanup of how compiletest handles pass/fail expectations, but I didn't want to cram too much into one PR.
r? jieyouxu
|`check-run-results`| Check run test binary `run-{pass,fail}` output snapshot |`ui`, `crashes`, `incremental`if `run-pass`| N/A |
94
-
|`error-pattern`| Check that output contains a specific string |`ui`, `crashes`, `incremental`if `run-pass`| String |
95
-
|`regex-error-pattern`| Check that output contains a regex pattern |`ui`, `crashes`, `incremental`if `run-pass`| Regex |
93
+
|`check-run-results`| Check run test binary `run-{pass,fail}` output snapshot |`ui`, `crashes`, `incremental`| N/A |
94
+
|`error-pattern`| Check that output contains a specific string |`ui`, `crashes`, `incremental`| String |
95
+
|`regex-error-pattern`| Check that output contains a regex pattern |`ui`, `crashes`, `incremental`| Regex |
96
96
|`check-stdout`| Check `stdout` against `error-pattern`s from running test binary[^check_stdout]|`ui`, `crashes`, `incremental`| N/A |
97
97
|`normalize-stderr-32bit`| Normalize actual stderr (for 32-bit platforms) with a rule `"<raw>" -> "<normalized>"` before comparing against snapshot |`ui`, `incremental`|`"<RAW>" -> "<NORMALIZED>"`, `<RAW>`/`<NORMALIZED>` is regex capture and replace syntax |
98
98
|`normalize-stderr-64bit`| Normalize actual stderr (for 64-bit platforms) with a rule `"<raw>" -> "<normalized>"` before comparing against snapshot |`ui`, `incremental`|`"<RAW>" -> "<NORMALIZED>"`, `<RAW>`/`<NORMALIZED>` is regex capture and replace syntax |
0 commit comments