mirror of
https://github.com/golang/go
synced 2024-11-23 18:10:04 -07:00
os/exec: disable tests on darwin/arm
There is only one process under the iOS sandboxd. Change-Id: I21b5528366a0248a034801a717f24c60f0733c5f Reviewed-on: https://go-review.googlesource.com/6101 Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
This commit is contained in:
parent
1e0e2ffb8d
commit
e4791066c8
@ -28,8 +28,9 @@ import (
|
||||
)
|
||||
|
||||
func helperCommand(t *testing.T, s ...string) *exec.Cmd {
|
||||
if runtime.GOOS == "nacl" {
|
||||
t.Skip("skipping on nacl")
|
||||
if runtime.GOOS == "nacl" || (runtime.GOOS == "darwin" && runtime.GOARCH == "arm") {
|
||||
// iOS cannot fork
|
||||
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
cs := []string{"-test.run=TestHelperProcess", "--"}
|
||||
cs = append(cs, s...)
|
||||
@ -49,6 +50,10 @@ func TestEcho(t *testing.T) {
|
||||
}
|
||||
|
||||
func TestCommandRelativeName(t *testing.T) {
|
||||
if runtime.GOOS == "darwin" && runtime.GOARCH == "arm" {
|
||||
t.Skip("skipping on darwin/arm")
|
||||
}
|
||||
|
||||
// Run our own binary as a relative path
|
||||
// (e.g. "_test/exec.test") our parent directory.
|
||||
base := filepath.Base(os.Args[0]) // "exec.test"
|
||||
@ -378,6 +383,10 @@ func TestExtraFiles(t *testing.T) {
|
||||
switch runtime.GOOS {
|
||||
case "nacl", "windows":
|
||||
t.Skipf("skipping test on %q", runtime.GOOS)
|
||||
case "darwin":
|
||||
if runtime.GOARCH == "arm" {
|
||||
t.Skipf("skipping test on %s/%s", runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
}
|
||||
|
||||
// Ensure that file descriptors have not already been leaked into
|
||||
|
Loading…
Reference in New Issue
Block a user