aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/go/script_test.go
diff options
context:
space:
mode:
authorBryan C. Mills <bcmills@google.com>2022-02-01 10:16:48 -0500
committerBryan Mills <bcmills@google.com>2022-02-01 19:09:20 +0000
commite22a14b7eb1e4a172d0c20d14a0d2433fdf20e5c (patch)
tree488c3f990b08911ca6b98c36a19d443d8b0f67f7 /src/cmd/go/script_test.go
parenta42bbf47d6b0d6f67ad843252cb2e8f56a9d32b7 (diff)
downloadgo-e22a14b7eb1e4a172d0c20d14a0d2433fdf20e5c.tar.gz
go-e22a14b7eb1e4a172d0c20d14a0d2433fdf20e5c.zip
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>
Diffstat (limited to 'src/cmd/go/script_test.go')
-rw-r--r--src/cmd/go/script_test.go4
1 files changed, 2 insertions, 2 deletions
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)