Skip to content

Commit 676206c

Browse files
authored
Merge pull request #4145 from rust-lang/rustup-2025-01-23
Automatic Rustup
2 parents dd8c7d7 + 3fc111c commit 676206c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/tests/directives.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,8 @@ for more details.
9494
| Directive | Explanation | Supported test suites | Possible values |
9595
|-----------------------------------|--------------------------------------------------------------------------------------------------------------------------|----------------------------------------------|-----------------------------------------------------------------------------------------|
9696
| `check-run-results` | Check run test binary `run-{pass,fail}` output snapshot | `ui`, `crashes`, `incremental` if `run-pass` | N/A |
97-
| `error-pattern` | Check that output contains a regex pattern | `ui`, `crashes`, `incremental` if `run-pass` | Regex |
97+
| `error-pattern` | Check that output contains a specific string | `ui`, `crashes`, `incremental` if `run-pass` | String |
98+
| `regex-error-pattern` | Check that output contains a regex pattern | `ui`, `crashes`, `incremental` if `run-pass` | Regex |
9899
| `check-stdout` | Check `stdout` against `error-pattern`s from running test binary[^check_stdout] | `ui`, `crashes`, `incremental` | N/A |
99100
| `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 |
100101
| `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 |
@@ -151,6 +152,8 @@ Some examples of `X` in `ignore-X` or `only-X`:
151152
`compare-mode-split-dwarf`, `compare-mode-split-dwarf-single`
152153
- The two different test modes used by coverage tests:
153154
`ignore-coverage-map`, `ignore-coverage-run`
155+
- When testing a dist toolchain: `dist`
156+
- This needs to be enabled with `COMPILETEST_ENABLE_DIST_TESTS=1`
154157

155158
The following directives will check rustc build settings and target
156159
settings:
@@ -173,6 +176,7 @@ settings:
173176
- `needs-rust-lld` — ignores if the rust lld support is not enabled (`rust.lld =
174177
true` in `config.toml`)
175178
- `needs-threads` — ignores if the target does not have threading support
179+
- `needs-subprocess` — ignores if the target does not have subprocess support
176180
- `needs-symlink` — ignores if the target does not support symlinks. This can be
177181
the case on Windows if the developer did not enable privileged symlink
178182
permissions.

0 commit comments

Comments
 (0)