]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: move printing of extra newline
authorJosh Bleecher Snyder <josharian@gmail.com>
Mon, 11 Jul 2016 18:18:17 +0000 (11:18 -0700)
committerJosh Bleecher Snyder <josharian@gmail.com>
Tue, 16 Aug 2016 14:37:17 +0000 (14:37 +0000)
No functional changes, makes vet happy.

Updates #11041

Change-Id: I59f3aba46d19b86d605508978652d76a1fe7ac7b
Reviewed-on: https://go-review.googlesource.com/27125
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/testdata/testprogcgo/threadprof.go

index a77479dfad1f8c5af19449d8b4c236799fc1c790..516f8dce9e22bcf8efccb20db9ba4e55eafe16e5 100644 (file)
@@ -84,8 +84,8 @@ func CgoExternalThreadSignal() {
 
        out, err := exec.Command(os.Args[0], "CgoExternalThreadSignal", "crash").CombinedOutput()
        if err == nil {
-               fmt.Println("C signal did not crash as expected\n")
-               fmt.Printf("%s\n", out)
+               fmt.Println("C signal did not crash as expected")
+               fmt.Printf("\n%s\n", out)
                os.Exit(1)
        }