Skip to content

Commit

Permalink
runtime: print more information when testCgoPprof fails
Browse files Browse the repository at this point in the history
Change-Id: I820dae0303959096f0c434b7e69ecb3bf070df09
Reviewed-on: https://go-review.googlesource.com/c/go/+/172197
Run-TryBot: Josh Bleecher Snyder <josharian@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
josharian committed Apr 16, 2019
1 parent a337cb2 commit f248cd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/crash_cgo_test.go
Expand Up @@ -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)
Expand Down

0 comments on commit f248cd3

Please sign in to comment.