aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Chase <drchase@google.com>2017-12-15 15:56:51 -0500
committerDavid Chase <drchase@google.com>2017-12-15 21:13:30 +0000
commita4dfb2e55525d56e5e185dc0082ee70d9bf1c00a (patch)
treeec4bd19ab0b7ae1a67b299d8efa42d6fe70be282 /src
parenteda703ac799906135869e9890f325c5ffdf49502 (diff)
downloadgo-a4dfb2e55525d56e5e185dc0082ee70d9bf1c00a.tar.xz
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: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src')
-rw-r--r--src/cmd/link/internal/ld/dwarf_test.go3
1 files changed, 3 insertions, 0 deletions
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)
}