Skip to content

Commit 120f03b

Browse files
authored
Merge pull request #342 from DaniPopes/document-normalize-stdout-test
Document normalize-stdout-test
2 parents 13d50bc + 1710d69 commit 120f03b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ their command specifies, or the test will fail without even being run.
7878
* `//@rustc-env: XXX=YYY` sets the env var `XXX` to `YYY` for the rustc driver execution.
7979
* for Miri these env vars are used during compilation via rustc and during the emulation of the program
8080
* you can specify this multiple times, accumulating all the env vars
81-
* `//@normalize-stderr-test: "REGEX" -> "REPLACEMENT"` replaces all matches of `REGEX` in the stderr with `REPLACEMENT`. The replacement may specify `$1` and similar backreferences to paste captures. Note that this
81+
* `//@normalize-stdout-test: "REGEX" -> "REPLACEMENT"` / `//@normalize-stderr-test: "REGEX" -> "REPLACEMENT"` replaces all matches of `REGEX` in the stdout/stderr with `REPLACEMENT`. The replacement may specify `$1` and similar backreferences to paste captures. Note that this
8282
doesn't apply to error strings specified by `//~` comments.
8383
* you can specify multiple such commands, there is no need to create a single regex that handles multiple replacements that you want to perform.
8484
* `//@require-annotations-for-level: LEVEL` can be used to change the level of diagnostics that require a corresponding annotation.

0 commit comments

Comments
 (0)