From: Bryan C. Mills Date: Tue, 1 Feb 2022 15:16:48 +0000 (-0500) Subject: cmd/go: add missing newlines in TestScript '? cmp' output X-Git-Tag: go1.18rc1~131 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=e22a14b7eb1e4a172d0c20d14a0d2433fdf20e5c;p=gostls13.git 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 Run-TryBot: Bryan Mills TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor --- diff --git a/src/cmd/go/script_test.go b/src/cmd/go/script_test.go index 0fc4b0f7ab..165d3308a8 100644 --- a/src/cmd/go/script_test.go +++ b/src/cmd/go/script_test.go @@ -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)