]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/x509: skip tests not made for darwin/arm
authorDavid Crawshaw <crawshaw@golang.org>
Fri, 27 Feb 2015 14:08:35 +0000 (09:08 -0500)
committerDavid Crawshaw <crawshaw@golang.org>
Fri, 27 Feb 2015 19:38:33 +0000 (19:38 +0000)
Change-Id: I8b18dc840425b72d7172a35cb0ba004bd156492d
Reviewed-on: https://go-review.googlesource.com/6252
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
src/crypto/x509/root_darwin_test.go
src/crypto/x509/x509_test.go

index 2e97b95b5453133c0dead0db3ddaf5543ddae0e6..e4718d0e33bc9a98c76dfb73100fc9239e87e72d 100644 (file)
@@ -4,9 +4,16 @@
 
 package x509
 
-import "testing"
+import (
+       "runtime"
+       "testing"
+)
 
 func TestSystemRoots(t *testing.T) {
+       if runtime.GOARCH == "arm" {
+               t.Skipf("skipping on %s/%s", runtime.GOOS, runtime.GOARCH)
+       }
+
        sysRoots := systemRootsPool()         // actual system roots
        execRoots, err := execSecurityRoots() // non-cgo roots
 
index 6414488bd7642a60d4990e90e662ce5f830d9e3a..b74cbaba1e135d16cde435a43b098c26e86fd35b 100644 (file)
@@ -829,6 +829,10 @@ func TestImports(t *testing.T) {
        switch runtime.GOOS {
        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)
+               }
        }
 
        if err := exec.Command("go", "run", "x509_test_import.go").Run(); err != nil {