1
0
mirror of https://github.com/golang/go synced 2024-11-26 20:01:19 -07:00

all: do not test internal linking on windows/arm64

(It doesn't work and isn't used by default.)

Change-Id: I90118d889bd963471f0915d8183502b55bd9dbf2
Reviewed-on: https://go-review.googlesource.com/c/go/+/312045
Trust: Russ Cox <rsc@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
This commit is contained in:
Russ Cox 2021-04-20 15:43:17 -04:00
parent 8e368708c5
commit 9cc3469106
3 changed files with 11 additions and 1 deletions

View File

@ -177,7 +177,8 @@ func TestIssue33979(t *testing.T) {
case "mips", "mipsle", "mips64", "mips64le":
t.Skipf("Skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
}
if runtime.GOOS == "aix" {
if runtime.GOOS == "aix" ||
runtime.GOOS == "windows" && runtime.GOARCH == "arm64" {
t.Skipf("Skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
}

View File

@ -33,6 +33,11 @@ func canInternalLink() bool {
case "arm64":
return false
}
case "windows":
switch runtime.GOARCH {
case "arm64":
return false
}
}
return true
}

View File

@ -9,6 +9,7 @@ package pe
import (
"os/exec"
"runtime"
"testing"
)
@ -24,6 +25,9 @@ func TestDefaultLinkerDWARF(t *testing.T) {
}
func TestInternalLinkerDWARF(t *testing.T) {
if runtime.GOARCH == "arm64" {
t.Skip("internal linker disabled on windows/arm64")
}
testCgoDWARF(t, linkCgoInternal)
}