Skip to content

Commit

Permalink
cmd/link: skip TestRuntimeTypeDIEs on Plan 9
Browse files Browse the repository at this point in the history
TestRuntimeTypeDIEs has been added in CL 38350. This
test is failing on Plan 9 because executables don't
have a DWARF symbol table.

Fixes golang#19944.

Change-Id: I121875bfd5f9f02ed668f8fb0686a0edffa2a99d
Reviewed-on: https://go-review.googlesource.com/40452
Run-TryBot: David du Colombier <[email protected]>
Reviewed-by: Brad Fitzpatrick <[email protected]>
TryBot-Result: Gobot Gobot <[email protected]>
  • Loading branch information
0intro committed Apr 12, 2017
1 parent 700574e commit 746441f
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cmd/link/internal/ld/dwarf_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ import (
"os"
"os/exec"
"path/filepath"
"runtime"
"testing"
)

func TestRuntimeTypeDIEs(t *testing.T) {
testenv.MustHaveGoBuild(t)

if runtime.GOOS == "plan9" {
t.Skip("skipping on plan9; no DWARF symbol table in executables")
}

dir, err := ioutil.TempDir("", "TestRuntimeTypeDIEs")
if err != nil {
t.Fatalf("could not create directory: %v", err)
Expand Down

0 comments on commit 746441f

Please sign in to comment.