Change-Id: I8b18dc840425b72d7172a35cb0ba004bd156492d
Reviewed-on: https://go-review.googlesource.com/6252
Reviewed-by: Hyang-Ah Hana Kim <hyangah@gmail.com>
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
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 {