]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: skip arm64 tests limited by iOS
authorDavid Crawshaw <crawshaw@golang.org>
Sat, 11 Apr 2015 23:30:37 +0000 (19:30 -0400)
committerDavid Crawshaw <crawshaw@golang.org>
Mon, 13 Apr 2015 11:55:32 +0000 (11:55 +0000)
Just like darwin/arm.

Change-Id: Ib0438021bfe9eb105222b93e5bb375c282cc7b8c
Reviewed-on: https://go-review.googlesource.com/8822
Reviewed-by: Minux Ma <minux@golang.org>
src/crypto/x509/root_darwin_test.go
src/crypto/x509/x509_test.go

index e4718d0e33bc9a98c76dfb73100fc9239e87e72d..cc6d23c505583913c0e0c2d4f7d7ccad36151981 100644 (file)
@@ -10,8 +10,9 @@ import (
 )
 
 func TestSystemRoots(t *testing.T) {
-       if runtime.GOARCH == "arm" {
-               t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
+       switch runtime.GOARCH {
+       case "arm", "arm64":
+               t.Skipf("skipping on %s/%s, no system root", runtime.GOOS, runtime.GOARCH)
        }
 
        sysRoots := systemRootsPool()         // actual system roots
index 7373157e41e88c27ec34e57af55157cea169198b..75207fe6194b24d1f7386c3efe060117d5eb32d0 100644 (file)
@@ -830,8 +830,9 @@ func TestImports(t *testing.T) {
        case "android", "nacl":
                t.Skipf("skipping on %s", runtime.GOOS)
        case "darwin":
-               if runtime.GOARCH == "arm" {
-                       t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
+               switch runtime.GOARCH {
+               case "arm", "arm64":
+                       t.Skipf("skipping on %s/%s, cannot fork", runtime.GOOS, runtime.GOARCH)
                }
        }