test/lib/jdk/test/lib/cds/CDSTestUtils.java
changeset 58842 6c255334120d
parent 55348 d109188f6480
child 58923 2938e0a4e954
equal deleted inserted replaced
58836:31ec3e55fa3d 58842:6c255334120d
   307     // of exceptions and common errors.
   307     // of exceptions and common errors.
   308     // Exception e argument - an exception to be re-thrown if none of the common
   308     // Exception e argument - an exception to be re-thrown if none of the common
   309     // exceptions match. Pass null if you wish not to re-throw any exception.
   309     // exceptions match. Pass null if you wish not to re-throw any exception.
   310     public static void checkCommonExecExceptions(OutputAnalyzer output, Exception e)
   310     public static void checkCommonExecExceptions(OutputAnalyzer output, Exception e)
   311         throws Exception {
   311         throws Exception {
   312         if (output.getStdout().contains("http://bugreport.java.com/bugreport/crash.jsp")) {
   312         if (output.getStdout().contains("https://bugreport.java.com/bugreport/crash.jsp")) {
   313             throw new RuntimeException("Hotspot crashed");
   313             throw new RuntimeException("Hotspot crashed");
   314         }
   314         }
   315         if (output.getStdout().contains("TEST FAILED")) {
   315         if (output.getStdout().contains("TEST FAILED")) {
   316             throw new RuntimeException("Test Failed");
   316             throw new RuntimeException("Test Failed");
   317         }
   317         }