1
0
mirror of https://github.com/golang/go synced 2024-11-17 22:14:43 -07:00

cmd/compile: skip TestStmtLines on Plan 9

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>
This commit is contained in:
David du Colombier 2018-05-14 20:34:34 +02:00 committed by David Chase
parent eeff8fa453
commit 218650fac8

View 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)