]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: skip TestStmtLines on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Mon, 14 May 2018 18:34:34 +0000 (20:34 +0200)
committerDavid Chase <drchase@google.com>
Mon, 14 May 2018 21:05:27 +0000 (21:05 +0000)
TestStmtLines has been added in CL 102435.
This test is failing on Plan 9 because executables
don't have a DWARF symbol table.

Fixes #25387.

Change-Id: I6ae7cba0e8ad4ab569a29ea8920b7849acfb9846
Reviewed-on: https://go-review.googlesource.com/113115
Run-TryBot: David du Colombier <0intro@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
src/cmd/compile/internal/ssa/stmtlines_test.go

index ff505ae357e0a71d56a4a08fca87fabd679ef8c1..443b5f9f569d5138a5cf771c7e820863daaa9900 100644 (file)
@@ -56,6 +56,10 @@ func (f *File) Get(lineno int) (string, bool) {
 }
 
 func TestStmtLines(t *testing.T) {
+       if runtime.GOOS == "plan9" {
+               t.Skip("skipping on plan9; no DWARF symbol table in executables")
+       }
+
        lines := map[Line]bool{}
        dw, err := open(testenv.GoToolPath(t))
        must(err)