]> Cypherpunks repositories - gostls13.git/commitdiff
net/http/cgi: skip fork test on darwin/arm64
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 11 Apr 2015 23:25:45 +0000 (19:25 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 13 Apr 2015 11:51:53 +0000 (11:51 +0000)
Just like darwin/arm.

Change-Id: Ib9a32bb0aed5f08b27de11a93aaf273cacdf5779
Reviewed-on: https://go-review.googlesource.com/8819
Reviewed-by: Minux Ma <minux@golang.org>
src/net/http/cgi/matryoshka_test.go

index bf28c5625b0074271807607983e81c60d94386e7..c89c6d525e6a48bb0ff2a031deafba3276cd781c 100644 (file)
@@ -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)
        }