equal
deleted
inserted
replaced
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 } |