Fixing a test bug. JDK-8171279-XDH-TLS-branch-2
authorapetcher
Wed, 29 Aug 2018 14:48:09 -0400
branchJDK-8171279-XDH-TLS-branch-2
changeset 56879 2aefd58f8ec5
parent 56878 55bac0266042
child 56880 6ba2f471478b
Fixing a test bug.
test/jdk/sun/security/ssl/CipherSuite/SupportedGroups.java
--- a/test/jdk/sun/security/ssl/CipherSuite/SupportedGroups.java	Wed Aug 29 11:18:29 2018 -0400
+++ b/test/jdk/sun/security/ssl/CipherSuite/SupportedGroups.java	Wed Aug 29 14:48:09 2018 -0400
@@ -26,7 +26,6 @@
  * @bug 8171279
  * @library /javax/net/ssl/templates
  * @summary Test TLS connection with each individual supported group
- * @run main/othervm SupportedGroups fail false
  * @run main/othervm SupportedGroups secp256r1
  * @run main/othervm SupportedGroups secp384r1
  * @run main/othervm SupportedGroups secp521r1
@@ -47,22 +46,6 @@
     public static void main(String[] args) throws Exception {
         System.setProperty("jdk.tls.namedGroups", args[0]);
 
-        boolean shouldPass = true;
-        if (args.length > 1) {
-            shouldPass = Boolean.parseBoolean(args[1]);
-        }
-
-        boolean passed;
-        try {
-            (new SupportedGroups()).run();
-            passed = true;
-        } catch (Throwable ex) {
-            passed = false;
-        }
-
-        if (passed != shouldPass) {
-            throw new RuntimeException("passed: " + passed +
-                ", should pass: " + shouldPass);
-        }
+        (new SupportedGroups()).run();
     }
 }