From 04040ec9f9c763aee549d6afa3d4f0c34adf9cc1 Mon Sep 17 00:00:00 2001 From: Than McIntosh Date: Fri, 17 Apr 2020 16:20:53 -0400 Subject: [PATCH] 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 TryBot-Result: Gobot Gobot Reviewed-by: Jeremy Faller Reviewed-by: Cherry Zhang --- src/debug/pe/file_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/debug/pe/file_test.go b/src/debug/pe/file_test.go index 26a65941e1..d96cd30904 100644 --- a/src/debug/pe/file_test.go +++ b/src/debug/pe/file_test.go @@ -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) }