changeset 14409:5c8065ff20dd

8156716: Incorrect condition in test SupportedDHKeys.java Reviewed-by: weijun
author xuelei
date Wed, 11 May 2016 05:02:20 +0000
parents 07b7895425c8
children 0df4fcfad601
files test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/sun/security/pkcs11/KeyAgreement/SupportedDHKeys.java	Wed May 11 12:32:00 2016 +0800
+++ b/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)) {