Commit 3c2f6072 authored by Lynn Boger's avatar Lynn Boger Committed by Brad Fitzpatrick

cmd/vendor/golang.org/x/arch/ppc64/ppc64asm: skip TestObjdumpPowerManual if not ppc64x

Skip TestObjdumpPowerManual if the host system is not ppc64 or ppc64le.
This test depends on using the host objdump and comparing output, which
does not work as expected if the test is run on another host.

Orignates from golang.org/x/arch/ppc64/ppc64asm commit 8e2d4898.

Fixes #17698

Change-Id: I956b0fb78c5ec33641db752d46a755008403d269
Reviewed-on: https://go-review.googlesource.com/32531Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent b82ae33b
......@@ -14,6 +14,7 @@ import (
"io"
"log"
"os"
"runtime"
"strconv"
"strings"
"testing"
......@@ -25,6 +26,9 @@ func testObjdump(t *testing.T, generate func(func([]byte))) {
if testing.Short() {
t.Skip("skipping objdump test in short mode")
}
if runtime.GOARCH != "ppc64le" && runtime.GOARCH != "ppc64" {
t.Skip("skipping; test requires host tool objdump for ppc64 or ppc64le")
}
if _, err := os.Stat(objdumpPath); err != nil {
t.Skip(err)
}
......
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