Commit a4dfb2e5 authored by David Chase's avatar David Chase

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 <drchase@google.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent eda703ac
...@@ -758,6 +758,9 @@ func TestAbstractOriginSanityWithLocationLists(t *testing.T) { ...@@ -758,6 +758,9 @@ func TestAbstractOriginSanityWithLocationLists(t *testing.T) {
if runtime.GOOS == "plan9" { if runtime.GOOS == "plan9" {
t.Skip("skipping on plan9; no DWARF symbol table in executables") 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) abstractOriginSanity(t, OptInl4DwLoc)
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment