Commit c0d48836 authored by David Crawshaw's avatar David Crawshaw

net/http/cgi: skip fork test on darwin/arm64

Just like darwin/arm.

Change-Id: Ib9a32bb0aed5f08b27de11a93aaf273cacdf5779
Reviewed-on: https://go-review.googlesource.com/8819Reviewed-by: 's avatarMinux Ma <minux@golang.org>
parent dc2d64bf
......@@ -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)
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment