From: David Crawshaw Date: Fri, 27 Feb 2015 14:08:35 +0000 (-0500) Subject: crypto/x509: skip tests not made for darwin/arm X-Git-Tag: go1.5beta1~1828 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b1517c39fbde96508b93588ae66b02a09915590b;p=gostls13.git crypto/x509: skip tests not made for darwin/arm Change-Id: I8b18dc840425b72d7172a35cb0ba004bd156492d Reviewed-on: https://go-review.googlesource.com/6252 Reviewed-by: Hyang-Ah Hana Kim --- diff --git a/src/crypto/x509/root_darwin_test.go b/src/crypto/x509/root_darwin_test.go index 2e97b95b54..e4718d0e33 100644 --- a/src/crypto/x509/root_darwin_test.go +++ b/src/crypto/x509/root_darwin_test.go @@ -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 diff --git a/src/crypto/x509/x509_test.go b/src/crypto/x509/x509_test.go index 6414488bd7..b74cbaba1e 100644 --- a/src/crypto/x509/x509_test.go +++ b/src/crypto/x509/x509_test.go @@ -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 {