diff --git a/src/cmd/link/dwarf_test.go b/src/cmd/link/dwarf_test.go index e52e26af49a34e..9c411ff1b83e40 100644 --- a/src/cmd/link/dwarf_test.go +++ b/src/cmd/link/dwarf_test.go @@ -93,11 +93,11 @@ func testDWARF(t *testing.T, buildmode string, expectDWARF bool, env ...string) // Ensure Apple's tooling can parse our object for symbols. out, err = exec.Command("symbols", exe).CombinedOutput() if err != nil { - t.Fatal(err) + t.Fatalf("symbols %v: %v: %s", filepath.Base(exe), err, out) } else { if bytes.HasPrefix(out, []byte("Unable to find file")) { // This failure will cause the App Store to reject our binaries. - t.Fatalf("/usr/bin/symbols %v: failed to parse file", filepath.Base(exe)) + t.Fatalf("symbols %v: failed to parse file", filepath.Base(exe)) } } }