--- a/jdk/test/sun/security/pkcs11/rsa/TestCACerts.java Tue Aug 11 12:33:25 2015 -0700
+++ b/jdk/test/sun/security/pkcs11/rsa/TestCACerts.java Wed Aug 12 14:38:09 2015 +0100
@@ -47,6 +47,22 @@
}
public void main(Provider p) throws Exception {
+
+ /*
+ * Use Solaris SPARC 11.2 or later to avoid an intermittent failure
+ * when running SunPKCS11-Solaris (8044554)
+ */
+ if (p.getName().equals("SunPKCS11-Solaris") &&
+ System.getProperty("os.name").equals("SunOS") &&
+ System.getProperty("os.arch").equals("sparcv9") &&
+ System.getProperty("os.version").compareTo("5.11") <= 0 &&
+ getDistro().compareTo("11.2") < 0) {
+
+ System.out.println("SunPKCS11-Solaris provider requires " +
+ "Solaris SPARC 11.2 or later, skipping");
+ return;
+ }
+
long start = System.currentTimeMillis();
Providers.setAt(p, 1);
try {