mirror of
https://github.com/golang/go
synced 2024-11-19 22:44:45 -07:00
net/http/cgi: skip fork test on darwin/arm64
Just like darwin/arm. Change-Id: Ib9a32bb0aed5f08b27de11a93aaf273cacdf5779 Reviewed-on: https://go-review.googlesource.com/8819 Reviewed-by: Minux Ma <minux@golang.org>
This commit is contained in:
parent
dc2d64bf81
commit
c0d48836ec
@ -21,10 +21,13 @@ import (
|
||||
"time"
|
||||
)
|
||||
|
||||
// iOS cannot fork, so we skip some tests
|
||||
var iOS = runtime.GOOS == "darwin" && (runtime.GOARCH == "arm" || runtime.GOARCH == "arm64")
|
||||
|
||||
// This test is a CGI host (testing host.go) that runs its own binary
|
||||
// as a child process testing the other half of CGI (child.go).
|
||||
func TestHostingOurselves(t *testing.T) {
|
||||
if runtime.GOOS == "nacl" || (runtime.GOOS == "darwin" && runtime.GOARCH == "arm") {
|
||||
if runtime.GOOS == "nacl" || iOS {
|
||||
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
|
||||
@ -93,7 +96,7 @@ func (w *limitWriter) Write(p []byte) (n int, err error) {
|
||||
// If there's an error copying the child's output to the parent, test
|
||||
// that we kill the child.
|
||||
func TestKillChildAfterCopyError(t *testing.T) {
|
||||
if runtime.GOOS == "nacl" || (runtime.GOOS == "darwin" && runtime.GOARCH == "arm") {
|
||||
if runtime.GOOS == "nacl" || iOS {
|
||||
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
|
||||
@ -140,7 +143,7 @@ func TestKillChildAfterCopyError(t *testing.T) {
|
||||
// Test that a child handler writing only headers works.
|
||||
// golang.org/issue/7196
|
||||
func TestChildOnlyHeaders(t *testing.T) {
|
||||
if runtime.GOOS == "nacl" || (runtime.GOOS == "darwin" && runtime.GOARCH == "arm") {
|
||||
if runtime.GOOS == "nacl" || iOS {
|
||||
t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user