]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1.8] cmd/link: skip TestDWARF on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Thu, 30 Mar 2017 19:33:06 +0000 (21:33 +0200)
committerAustin Clements <austin@google.com>
Wed, 5 Apr 2017 18:11:31 +0000 (18:11 +0000)
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>

src/cmd/link/dwarf_test.go

index 33465144e4e5337c49693365b3fe80d2f38f967c..f10eaedaf57c7f5f6825d9a4ddab40593f3d0c94 100644 (file)
@@ -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)