test/jdk/javax/net/ssl/compatibility/Server.java
changeset 50968 14708e1acdc3
parent 47955 0887e20e7173
child 53394 bd733a8ea625
equal deleted inserted replaced
50967:1e24c7152e47 50968:14708e1acdc3
     1 /*
     1 /*
     2  * Copyright (c) 2017, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2017, 2018, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   144         } finally {
   144         } finally {
   145             if (server != null) {
   145             if (server != null) {
   146                 server.close();
   146                 server.close();
   147             }
   147             }
   148 
   148 
   149             // Cleanups port.log.
   149             // Cleanups port log.
   150             File file = new File(Utils.PORT_LOG);
   150             if (!new File(Utils.PORT_LOG).delete()) {
   151             if (file.exists()) {
   151                 throw new RuntimeException("Cannot delete port log");
   152                 file.delete();
       
   153             }
   152             }
   154         }
   153         }
   155 
   154 
   156         System.out.println("STATUS: " + status);
   155         System.out.println("STATUS: " + status);
   157         System.out.println("----- Server end -----");
   156         System.out.println("----- Server end -----");