Mercurial > hg > openjdk > aarch64-port > jdk
changeset 10911:66bf77932d57
8078823: javax/net/ssl/ciphersuites/DisabledAlgorithms.java fails intermittently
Reviewed-by: xuelei
author | asmotrak |
---|---|
date | Wed, 24 Jun 2015 14:38:15 +0300 |
parents | fddcb008fd1d |
children | 08c270fb5575 |
files | test/javax/net/ssl/ciphersuites/DisabledAlgorithms.java |
diffstat | 1 files changed, 12 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/test/javax/net/ssl/ciphersuites/DisabledAlgorithms.java Tue Jun 23 15:07:18 2015 +0100 +++ b/test/javax/net/ssl/ciphersuites/DisabledAlgorithms.java Wed Jun 24 14:38:15 2015 +0300 @@ -104,6 +104,8 @@ default: throw new RuntimeException("Wrong parameter: " + args[0]); } + + System.out.println("Test passed"); } /* @@ -128,7 +130,6 @@ } } - server.stop(); while (server.isRunning()) { sleep(); } @@ -224,11 +225,19 @@ } catch (SSLHandshakeException e) { System.out.println("Server: run: " + e); sslError = true; + stopped = true; } catch (IOException e) { if (!stopped) { - System.out.println("Server: run: " + e); + System.out.println("Server: run: unexpected exception: " + + e); e.printStackTrace(); otherError = true; + stopped = true; + } else { + System.out.println("Server: run: " + e); + System.out.println("The exception above occurred " + + "because socket was closed, " + + "please ignore it"); } } } @@ -261,6 +270,7 @@ stopped = true; if (!ssocket.isClosed()) { try { + System.out.println("Server: close socket"); ssocket.close(); } catch (IOException e) { System.out.println("Server: close: " + e);