cmd/go: FAIL line printed by "go test" corrupted when test output does not end in a newline #49317
Labels
FrozenDueToAge
GoCommand
cmd/go
NeedsFix
The path to resolution is known, but the work has not been done.
Milestone
When the test for a package fails,
go test
prints the test's output followed by aFAIL
line for the package.Unfortunately, it does not check whether the test's output ends with a newline; when it doesn't,
go test
doesn't add one, so tools that (reasonably) look for output lines matching^FAIL\s+
don't find those failures.The text was updated successfully, but these errors were encountered: