aboutsummaryrefslogtreecommitdiff
path: root/misc/cgo/testplugin/src
diff options
context:
space:
mode:
authorAlessandro Arzilli <alessandro.arzilli@gmail.com>2018-09-05 07:07:56 +0200
committerBrad Fitzpatrick <bradfitz@golang.org>2018-09-05 11:27:37 +0000
commit3fd364988ce5dcf3aa1d4eb945d233455db30af6 (patch)
treee06da3caca9b5a53382e490fbe6f2526328e22df /misc/cgo/testplugin/src
parentbcf3e063cc332e4c75b99d0102c0f12dd307c0b5 (diff)
downloadgo-3fd364988ce5dcf3aa1d4eb945d233455db30af6.tar.xz
misc/cgo/testplugin: disable DWARF tests on darwin
For some reason on darwin the linker still can't add debug sections to plugins. Executables importing "plugin" do have them, however. Because of issue 25841, plugins on darwin would likely have bad debug info anyway so, for now, this isn't a great loss. This disables the check for debug sections in plugins for darwin only. Updates #27502 Change-Id: Ib8f62dac1e485006b0c2b3ba04f86d733db5ee9a Reviewed-on: https://go-review.googlesource.com/133435 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'misc/cgo/testplugin/src')
-rw-r--r--misc/cgo/testplugin/src/checkdwarf/main.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/misc/cgo/testplugin/src/checkdwarf/main.go b/misc/cgo/testplugin/src/checkdwarf/main.go
index b689c4af15..7886c834e7 100644
--- a/misc/cgo/testplugin/src/checkdwarf/main.go
+++ b/misc/cgo/testplugin/src/checkdwarf/main.go
@@ -71,13 +71,13 @@ func main() {
}
if exe == nil {
- fmt.Fprintf(os.Stderr, "could not open %s", exePath)
+ fmt.Fprintf(os.Stderr, "could not open %s\n", exePath)
os.Exit(1)
}
data, err := exe.DWARF()
if err != nil {
- fmt.Fprintf(os.Stderr, "error opening DWARF: %v", err)
+ fmt.Fprintf(os.Stderr, "%s: error opening DWARF: %v\n", exePath, err)
os.Exit(1)
}
@@ -85,7 +85,7 @@ func main() {
for {
e, err := rdr.Next()
if err != nil {
- fmt.Fprintf(os.Stderr, "error reading DWARF: %v", err)
+ fmt.Fprintf(os.Stderr, "%s: error reading DWARF: %v\n", exePath, err)
os.Exit(1)
}
if e == nil {
@@ -101,6 +101,6 @@ func main() {
}
}
- fmt.Fprintf(os.Stderr, "no entry with a name ending in %q was found", dieSuffix)
+ fmt.Fprintf(os.Stderr, "%s: no entry with a name ending in %q was found\n", exePath, dieSuffix)
os.Exit(1)
}