From a4dfb2e55525d56e5e185dc0082ee70d9bf1c00a Mon Sep 17 00:00:00 2001 From: David Chase Date: Fri, 15 Dec 2017 15:56:51 -0500 Subject: [PATCH] cmd/link: make inlining+locationlist test depend on GOARCH 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 Reviewed-by: Brad Fitzpatrick --- src/cmd/link/internal/ld/dwarf_test.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/cmd/link/internal/ld/dwarf_test.go b/src/cmd/link/internal/ld/dwarf_test.go index e959aeed65..202ab8fcfc 100644 --- a/src/cmd/link/internal/ld/dwarf_test.go +++ b/src/cmd/link/internal/ld/dwarf_test.go @@ -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) } -- 2.50.0