Skip to content

Commit a0c96a9

Browse files
tmm1thanm
authored andcommitted
cmd/link/internal/ld: improve messages for testDWARF failures
Change-Id: I60af7a6477d1b25c43b311246ae4a79bf691460e Reviewed-on: https://go-review.googlesource.com/c/go/+/171819 Reviewed-by: Brad Fitzpatrick <[email protected]> Run-TryBot: Brad Fitzpatrick <[email protected]> TryBot-Result: Gobot Gobot <[email protected]>
1 parent 056d360 commit a0c96a9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/cmd/link/dwarf_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,11 @@ func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string)
9393
// Ensure Apple's tooling can parse our object for symbols.
9494
out, err = exec.Command("symbols", exe).CombinedOutput()
9595
if err != nil {
96-
t.Fatal(err)
96+
t.Fatalf("symbols %v: %v: %s", filepath.Base(exe), err, out)
9797
} else {
9898
if bytes.HasPrefix(out, []byte("Unable to find file")) {
9999
// This failure will cause the App Store to reject our binaries.
100-
t.Fatalf("/usr/bin/symbols %v: failed to parse file", filepath.Base(exe))
100+
t.Fatalf("symbols %v: failed to parse file", filepath.Base(exe))
101101
}
102102
}
103103
}

0 commit comments

Comments
 (0)