mirror of
https://github.com/golang/go
synced 2024-11-05 15:26:15 -07:00
debug/pe: improve testpoint error message
A DWARF testpoint was calling t.Fatal() but should have been calling t.Fatalf(); switch it to the correct method. Change-Id: I996a1041adea4299cda85c147a35b513a219b970 Reviewed-on: https://go-review.googlesource.com/c/go/+/228790 Run-TryBot: Than McIntosh <thanm@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Jeremy Faller <jeremy@golang.org> Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
parent
885099d155
commit
04040ec9f9
@ -451,7 +451,7 @@ func testDWARF(t *testing.T, linktype int) {
|
||||
}
|
||||
offset := uintptr(addr) - imageBase
|
||||
if offset != uintptr(wantoffset) {
|
||||
t.Fatal("Runtime offset (0x%x) did "+
|
||||
t.Fatalf("Runtime offset (0x%x) did "+
|
||||
"not match dwarf offset "+
|
||||
"(0x%x)", wantoffset, offset)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user