diff options
author | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-11 17:36:50 +0200 |
---|---|---|
committer | Jason A. Donenfeld <Jason@zx2c4.com> | 2021-06-11 20:31:30 +0000 |
commit | 16b5d766d8af8bc348f93e6cb2b53a4e2d5d72ca (patch) | |
tree | 8242b9211dcfc8e3cb5fc453d1cf4d7ba5d2d8cd /src/syscall | |
parent | 77aa209b386a184e7f4b44938f2a05a1b5c5a3cf (diff) | |
download | go-16b5d766d8af8bc348f93e6cb2b53a4e2d5d72ca.tar.gz go-16b5d766d8af8bc348f93e6cb2b53a4e2d5d72ca.zip |
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 <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
Diffstat (limited to 'src/syscall')
-rw-r--r-- | src/syscall/syscall_windows_test.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/syscall/syscall_windows_test.go b/src/syscall/syscall_windows_test.go index ea8fa191dc..3243952ded 100644 --- a/src/syscall/syscall_windows_test.go +++ b/src/syscall/syscall_windows_test.go @@ -10,6 +10,7 @@ import ( "os" "os/exec" "path/filepath" + "runtime" "strings" "syscall" "testing" @@ -79,6 +80,9 @@ func TestTOKEN_ALL_ACCESS(t *testing.T) { func TestStdioAreInheritable(t *testing.T) { testenv.MustHaveGoBuild(t) testenv.MustHaveExecPath(t, "gcc") + if runtime.GOARCH == "arm64" || runtime.GOARCH == "arm" { + t.Skip("Powershell is not native on ARM; see golang.org/issues/46701") + } tmpdir := t.TempDir() |