1
0
mirror of https://github.com/golang/go synced 2024-11-20 08:54:40 -07:00

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/32531
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
Lynn Boger 2016-11-01 10:43:34 -05:00 committed by Brad Fitzpatrick
parent b82ae33b90
commit 3c2f607274

View File

@ -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)
}