Skip to content

Commit

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

Fixes #24226.

Change-Id: Iff7e34b8c2703a2f19ee8087a4d64d0bb98496cd
Reviewed-on: https://go-review.googlesource.com/98275
Reviewed-by: Brad Fitzpatrick <[email protected]>
  • Loading branch information
0intro authored and bradfitz committed Mar 2, 2018
1 parent d3562c9 commit 1c9297c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/cmd/compile/internal/gc/scope_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,10 @@ func gobuild(t *testing.T, dir string, optimized bool, testfile []testline) (str
func TestEmptyDwarfRanges(t *testing.T) {
testenv.MustHaveGoRun(t)

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

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

0 comments on commit 1c9297c

Please sign in to comment.