aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2017-03-30 21:33:06 +0200
committerAustin Clements <austin@google.com>2017-04-05 18:11:31 +0000
commit056be9f79c37076e1a75639163016182b8b31843 (patch)
treeb526d0b7eab851cfecb24453657f89d3d0d730eb
parent02240408a1dc47f1cdefd9695d220cf1d2fff264 (diff)
downloadgo-056be9f79c37076e1a75639163016182b8b31843.tar.gz
go-056be9f79c37076e1a75639163016182b8b31843.zip
[release-branch.go1.8] cmd/link: skip TestDWARF on Plan 9
TestDWARF has been added in CL 38855. This test is failing on Plan 9 because executables don't have a DWARF symbol table. Fixes #19793. (This fixes Plan 9 failures on the release branch introduced by cherry-pick CL 39605.) Change-Id: I7fc547a7c877b58cc4ff6b4eb5b14852e8b4668b Reviewed-on: https://go-review.googlesource.com/39611 Run-TryBot: Austin Clements <austin@google.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org>
-rw-r--r--src/cmd/link/dwarf_test.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cmd/link/dwarf_test.go b/src/cmd/link/dwarf_test.go
index 33465144e4..f10eaedaf5 100644
--- a/src/cmd/link/dwarf_test.go
+++ b/src/cmd/link/dwarf_test.go
@@ -26,6 +26,10 @@ func TestDWARF(t *testing.T) {
testenv.MustHaveGoBuild(t)
+ if runtime.GOOS == "plan9" {
+ t.Skip("skipping on plan9; no DWARF symbol table in executables")
+ }
+
out, err := exec.Command(testenv.GoToolPath(t), "list", "-f", "{{.Stale}}", "cmd/link").CombinedOutput()
if err != nil {
t.Fatalf("go list: %v\n%s", err, out)