diff --git a/src/tests/directives.md b/src/tests/directives.md index a709f7e29..21b1956b9 100644 --- a/src/tests/directives.md +++ b/src/tests/directives.md @@ -96,8 +96,8 @@ for more details. | `check-stdout` | Check `stdout` against `error-pattern`s from running test binary[^check_stdout] | `ui`, `crashes`, `incremental` | N/A | | `normalize-stderr-32bit` | Normalize actual stderr (for 32-bit platforms) with a rule `"" -> ""` before comparing against snapshot | `ui`, `incremental` | `"" -> ""`, ``/`` is regex capture and replace syntax | | `normalize-stderr-64bit` | Normalize actual stderr (for 64-bit platforms) with a rule `"" -> ""` before comparing against snapshot | `ui`, `incremental` | `"" -> ""`, ``/`` is regex capture and replace syntax | -| `normalize-stderr-test` | Normalize actual stderr with a rule `"" -> ""` before comparing against snapshot | `ui`, `incremental` | `"" -> ""`, ``/`` is regex capture and replace syntax | -| `normalize-stdout-test` | Normalize actual stdout with a rule `"" -> ""` before comparing against snapshot | `ui`, `incremental` | `"" -> ""`, ``/`` is regex capture and replace syntax | +| `normalize-stderr` | Normalize actual stderr with a rule `"" -> ""` before comparing against snapshot | `ui`, `incremental` | `"" -> ""`, ``/`` is regex capture and replace syntax | +| `normalize-stdout` | Normalize actual stdout with a rule `"" -> ""` before comparing against snapshot | `ui`, `incremental` | `"" -> ""`, ``/`` is regex capture and replace syntax | | `dont-check-compiler-stderr` | Don't check actual compiler stderr vs stderr snapshot | `ui` | N/A | | `dont-check-compiler-stdout` | Don't check actual compiler stdout vs stdout snapshot | `ui` | N/A | | `run-rustfix` | Apply all suggestions via `rustfix`, snapshot fixed output, and check fixed output builds | `ui` | N/A | diff --git a/src/tests/ui.md b/src/tests/ui.md index 0516c47fc..c8536b004 100644 --- a/src/tests/ui.md +++ b/src/tests/ui.md @@ -140,7 +140,8 @@ Sometimes these built-in normalizations are not enough. In such cases, you may provide custom normalization rules using `normalize-*` directives, e.g. ```rust,ignore -//@ normalize-stdout-test: "foo" -> "bar" +//@ normalize-stdout: "foo" -> "bar" +//@ normalize-stderr: "foo" -> "bar" //@ normalize-stderr-32bit: "fn\(\) \(32 bits\)" -> "fn\(\) \($$PTR bits\)" //@ normalize-stderr-64bit: "fn\(\) \(64 bits\)" -> "fn\(\) \($$PTR bits\)" ``` @@ -167,11 +168,6 @@ usage example. [mrs]: https://github.com/rust-lang/rust/blob/master/tests/ui/transmute/main.rs [`main.stderr`]: https://github.com/rust-lang/rust/blob/master/tests/ui/transmute/main.stderr -Besides `normalize-stderr-32bit` and `-64bit`, one may use any target -information or stage supported by [`ignore-X`](directives.md#ignoring-tests) here -as well (e.g. `normalize-stderr-windows` or simply `normalize-stderr-test` for -unconditional replacement). - ## Error annotations Error annotations specify the errors that the compiler is expected to emit. They