Skip to content

Commit 16b5d76

Browse files
committed
syscall: do not load native libraries on non-native powershell on arm
The powershell that currently ships on ARM Windows isn't native, so it won't load native DLLs. So just skip the tests for now, and reenable it if this ever changes. Updates #46701. Change-Id: I2559fdf13cb65d3ecdc4c6f6df7dec1b490b9651 Reviewed-on: https://go-review.googlesource.com/c/go/+/327210 TryBot-Result: Go Bot <[email protected]> Reviewed-by: Ian Lance Taylor <[email protected]> Trust: Jason A. Donenfeld <[email protected]> Run-TryBot: Jason A. Donenfeld <[email protected]>
1 parent 77aa209 commit 16b5d76

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/syscall/syscall_windows_test.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ import (
1010
"os"
1111
"os/exec"
1212
"path/filepath"
13+
"runtime"
1314
"strings"
1415
"syscall"
1516
"testing"
@@ -79,6 +80,9 @@ func TestTOKEN_ALL_ACCESS(t *testing.T) {
7980
func TestStdioAreInheritable(t *testing.T) {
8081
testenv.MustHaveGoBuild(t)
8182
testenv.MustHaveExecPath(t, "gcc")
83+
if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" {
84+
t.Skip("Powershell is not native on ARM; see golang.org/issues/46701")
85+
}
8286

8387
tmpdir := t.TempDir()
8488

0 commit comments

Comments
 (0)