]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: add missing newlines in TestScript '? cmp' output
authorBryan C. Mills <bcmills@google.com>
Tue, 1 Feb 2022 15:16:48 +0000 (10:16 -0500)
committerBryan Mills <bcmills@google.com>
Tue, 1 Feb 2022 19:09:20 +0000 (19:09 +0000)
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>
src/cmd/go/script_test.go

index 0fc4b0f7abd0fc104a7ff26b5f4b85a16a7268b3..165d3308a8ec1746deb186bf0fb6c45ae30a5998 100644 (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)