8156716: Incorrect condition in test SupportedDHKeys.java
authorxuelei
Wed, 11 May 2016 05:02:20 +0000
changeset 37884 7f404dcfb3dc
parent 37883 e2acd0d8d716
child 37885 5ac482a31fd5
8156716: Incorrect condition in test SupportedDHKeys.java Reviewed-by: weijun
jdk/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java
--- a/jdk/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java	Wed May 11 12:32:00 2016 +0800
+++ b/jdk/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java	Wed May 11 05:02:20 2016 +0000
@@ -108,8 +108,7 @@
         BigInteger rightOpen = p.subtract(BigInteger.ONE);
 
         // ignore the private key range checking on Solaris at present
-        if (provider.getName().equals("SunPKCS11-Solaris") &&
-                !System.getProperty("os.name").equals("SunOS")) {
+        if (!provider.getName().equals("SunPKCS11-Solaris")) {
             BigInteger x = privateKey.getX();
             if ((x.compareTo(leftOpen) <= 0) ||
                     (x.compareTo(rightOpen) >= 0)) {