]> Cypherpunks repositories - gostls13.git/commitdiff
debug/pe: improve testpoint error message
authorThan McIntosh <thanm@google.com>
Fri, 17 Apr 2020 20:20:53 +0000 (16:20 -0400)
committerThan McIntosh <thanm@google.com>
Sun, 19 Apr 2020 21:15:08 +0000 (21:15 +0000)
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>
src/debug/pe/file_test.go

index 26a65941e14cf63feea721bab9cb4219cea45c96..d96cd30904e2cfefeed110d25381dc87c34f45e8 100644 (file)
@@ -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)
                                }