Document the `//@ unused-revision-names:` test header (#1991)
This commit is contained in:
parent
c62f870bd9
commit
62990d0e5e
|
|
@ -639,6 +639,19 @@ Following is classes of tests that support revisions:
|
||||||
- rustdoc UI tests
|
- rustdoc UI tests
|
||||||
- incremental (these are special in that they inherently cannot be run in parallel)
|
- incremental (these are special in that they inherently cannot be run in parallel)
|
||||||
|
|
||||||
|
### Ignoring unused revision names
|
||||||
|
|
||||||
|
Normally, revision names mentioned in other headers and error annotations must
|
||||||
|
correspond to an actual revision declared in a `revisions` header. This is
|
||||||
|
enforced by an `./x test tidy` check.
|
||||||
|
|
||||||
|
If a revision name needs to be temporarily removed from the revision list for
|
||||||
|
some reason, the above check can be suppressed by adding the revision name to
|
||||||
|
an `//@ unused-revision-names:` header instead.
|
||||||
|
|
||||||
|
Specifying an unused name of `*` (i.e. `//@ unused-revision-names: *`) will
|
||||||
|
permit any unused revision name to be mentioned.
|
||||||
|
|
||||||
## Compare modes
|
## Compare modes
|
||||||
|
|
||||||
Compiletest can be run in different modes, called _compare modes_, which can
|
Compiletest can be run in different modes, called _compare modes_, which can
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,8 @@ found in [`header.rs`] from the compiletest source.
|
||||||
* `no-auto-check-cfg` — disable auto check-cfg (only for `--check-cfg` tests)
|
* `no-auto-check-cfg` — disable auto check-cfg (only for `--check-cfg` tests)
|
||||||
* `force-host` — build only for the host target
|
* `force-host` — build only for the host target
|
||||||
* [`revisions`](compiletest.md#revisions) — compile multiple times
|
* [`revisions`](compiletest.md#revisions) — compile multiple times
|
||||||
|
* [`unused-revision-names`](compiletest.md#ignoring-unused-revision-names) -
|
||||||
|
suppress tidy checks for mentioning unknown revision names
|
||||||
* [`forbid-output`](compiletest.md#incremental-tests) — incremental cfail rejects output pattern
|
* [`forbid-output`](compiletest.md#incremental-tests) — incremental cfail rejects output pattern
|
||||||
* [`should-ice`](compiletest.md#incremental-tests) — incremental cfail should ICE
|
* [`should-ice`](compiletest.md#incremental-tests) — incremental cfail should ICE
|
||||||
* [`known-bug`](ui.md#known-bugs) — indicates that the test is
|
* [`known-bug`](ui.md#known-bugs) — indicates that the test is
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue