]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/compile: skip TestScopeRanges on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Fri, 19 May 2017 00:13:50 +0000 (02:13 +0200)
committerDavid du Colombier <0intro@gmail.com>
Fri, 19 May 2017 00:29:20 +0000 (00:29 +0000)
TestScopeRanges has been added in CL 40095. This
test is failing on Plan 9 because executables don't
have a DWARF symbol table.

Fixes #20418.

Change-Id: I6dd3baa636998134ccd042203c8b5c3199a4d6e1
Reviewed-on: https://go-review.googlesource.com/43670
Run-TryBot: David du Colombier <0intro@gmail.com>
Reviewed-by: Matthew Dempsky <mdempsky@google.com>
src/cmd/compile/internal/gc/scope_test.go

index 5833b1e64990ea712361404ebfd0b98002f9a730..f08e900193d749e1df65958a8a83c11538e98109 100644 (file)
@@ -12,6 +12,7 @@ import (
        "os"
        "os/exec"
        "path/filepath"
+       "runtime"
        "sort"
        "strconv"
        "strings"
@@ -182,6 +183,11 @@ const detailOutput = false
 // corresponds to what we expect it to be.
 func TestScopeRanges(t *testing.T) {
        testenv.MustHaveGoBuild(t)
+
+       if runtime.GOOS == "plan9" {
+               t.Skip("skipping on plan9; no DWARF symbol table in executables")
+       }
+
        dir, err := ioutil.TempDir("", "TestScopeRanges")
        if err != nil {
                t.Fatalf("could not create directory: %v", err)