1
0
mirror of https://github.com/golang/go synced 2024-11-16 22:04:50 -07:00

cmd/go: add missing newlines in TestScript '? cmp' output

Change-Id: I0314c2e9073b162119060a23c5eee9a78ca08ebf
Reviewed-on: https://go-review.googlesource.com/c/go/+/382239
Trust: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Bryan C. Mills 2022-02-01 10:16:48 -05:00 committed by Bryan Mills
parent a42bbf47d6
commit e22a14b7eb

View File

@ -648,9 +648,9 @@ func (ts *testScript) doCmdCmp(want simpleStatus, args []string, env, quiet bool
}
case successOrFailure:
if eq {
fmt.Fprintf(&ts.log, "%s and %s do not differ", name1, name2)
fmt.Fprintf(&ts.log, "%s and %s do not differ\n", name1, name2)
} else {
fmt.Fprintf(&ts.log, "%s and %s differ", name1, name2)
fmt.Fprintf(&ts.log, "%s and %s differ\n", name1, name2)
}
default:
ts.fatalf("unsupported: %v cmp", want)