diff options
| author | Bryan C. Mills <bcmills@google.com> | 2023-03-23 15:17:50 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-03-23 19:50:22 +0000 |
| commit | 7b887158825720134181b6fe403066eee0cccee3 (patch) | |
| tree | 29dc138862a030347aafa632176e0183b54fc281 /src/runtime/sys_linux_amd64.s | |
| parent | 3d5391ed87d813110e10b954c62bf7ed578b591f (diff) | |
| download | go-7b887158825720134181b6fe403066eee0cccee3.tar.xz | |
testing: quote -test.v=test2json output when logging it
The -test.v=test2json flag causes the testing package to inject extra
control characters in the output to allow the JSON parser to more
gracefully handle extraneous writes to os.Stdout and/or os.Stderr in
the package under test (see CL 443596). However, it doesn't filter out
those control characters because almost no real-world tests will
output them.
It turns out that testing.TestFlag is one of the rare tests that does
output those control characters, because it tests the
-test.v=test2json flag itself.
Fixes #59181.
Change-Id: I35ca6748afcd3d4333563028817caac946f5e86a
Reviewed-on: https://go-review.googlesource.com/c/go/+/479035
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Diffstat (limited to 'src/runtime/sys_linux_amd64.s')
0 files changed, 0 insertions, 0 deletions
