From: Josh Bleecher Snyder Date: Tue, 16 Apr 2019 00:55:58 +0000 (-0700) Subject: runtime: print more information when testCgoPprof fails X-Git-Tag: go1.13beta1~690 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=f248cd3a0753ce02928525268d9c7d1fcceffee0;p=gostls13.git runtime: print more information when testCgoPprof fails Change-Id: I820dae0303959096f0c434b7e69ecb3bf070df09 Reviewed-on: https://go-review.googlesource.com/c/go/+/172197 Run-TryBot: Josh Bleecher Snyder TryBot-Result: Gobot Gobot Reviewed-by: Brad Fitzpatrick --- diff --git a/src/runtime/crash_cgo_test.go b/src/runtime/crash_cgo_test.go index af3c1f82a7..56cfb0856e 100644 --- a/src/runtime/crash_cgo_test.go +++ b/src/runtime/crash_cgo_test.go @@ -281,7 +281,7 @@ func testCgoPprof(t *testing.T, buildArg, runArg, top, bottom string) { // See Issue 18243 and Issue 19938. t.Skipf("Skipping failing test on Alpine (golang.org/issue/18243). Ignoring error: %v", err) } - t.Fatal(err) + t.Fatalf("%s\n\n%v", got, err) } fn := strings.TrimSpace(string(got)) defer os.Remove(fn)