]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/link: make inlining+locationlist test depend on GOARCH
authorDavid Chase <drchase@google.com>
Fri, 15 Dec 2017 20:56:51 +0000 (15:56 -0500)
committerDavid Chase <drchase@google.com>
Fri, 15 Dec 2017 21:13:30 +0000 (21:13 +0000)
Location lists are only supported on x86 and amd64, so the
test expecting them failed everywhere else. Make that test
skip unless GOARCH is x86 or amd64.

Change-Id: Id86b34d30c6a0b97e6fa0cd5aca31f51ed84f556
Reviewed-on: https://go-review.googlesource.com/84395
Run-TryBot: David Chase <drchase@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/link/internal/ld/dwarf_test.go

index e959aeed654509409e1029927a83fdf884f1a017..202ab8fcfcadb4ff8e38a657b641c5832b1e7bab 100644 (file)
@@ -758,6 +758,9 @@ func TestAbstractOriginSanityWithLocationLists(t *testing.T) {
        if runtime.GOOS == "plan9" {
                t.Skip("skipping on plan9; no DWARF symbol table in executables")
        }
+       if runtime.GOARCH != "amd64" && runtime.GOARCH != "x86" {
+               t.Skip("skipping on not-amd64 not-x86; location lists not supported")
+       }
 
        abstractOriginSanity(t, OptInl4DwLoc)
 }