8158620: Enable debug option for sun/security/ec/TestEC.java
authorfyuan
Mon, 13 Jun 2016 00:47:32 -0700
changeset 38886 bf687d4281eb
parent 38885 42d2c26ffdf3
child 38887 bb8ffdf4e7aa
8158620: Enable debug option for sun/security/ec/TestEC.java Reviewed-by: mullan, xuelei Contributed-by: Tim Du <tiantian.du@oracle.com>
jdk/test/sun/security/ec/TestEC.java
--- a/jdk/test/sun/security/ec/TestEC.java	Mon Jun 13 08:29:43 2016 +0100
+++ b/jdk/test/sun/security/ec/TestEC.java	Mon Jun 13 00:47:32 2016 -0700
@@ -1,5 +1,5 @@
 /*
- * Copyright (c) 2009, 2015, Oracle and/or its affiliates. All rights reserved.
+ * Copyright (c) 2009, 2016, Oracle and/or its affiliates. All rights reserved.
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
  *
  * This code is free software; you can redistribute it and/or modify it
@@ -59,12 +59,21 @@
 
 public class TestEC {
 
+    /*
+     * Turn on SSL debugging
+     */
+    private static final boolean debug = true;
+
     public static void main(String[] args) throws Exception {
         // reset security properties to make sure that the algorithms
         // and keys used in this test are not disabled.
         Security.setProperty("jdk.tls.disabledAlgorithms", "");
         Security.setProperty("jdk.certpath.disabledAlgorithms", "");
 
+        if (debug) {
+            System.setProperty("javax.net.debug", "all");
+        }
+
         ProvidersSnapshot snapshot = ProvidersSnapshot.create();
         try {
             main0(args);