--- old/test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/ClassPathTests.java 2018-10-02 12:51:44.336105660 -0700 +++ new/test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/ClassPathTests.java 2018-10-02 12:51:43.977071773 -0700 @@ -52,6 +52,7 @@ * same name and package. */ +import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import java.nio.file.Path; import java.nio.file.Paths; @@ -62,6 +63,8 @@ import jdk.test.lib.process.ProcessTools; import jdk.test.lib.process.OutputAnalyzer; +import jtreg.SkippedException; + public class ClassPathTests { private static final String TEST_SRC = System.getProperty("test.src"); @@ -92,7 +95,15 @@ for (Method m : methods) { if (m.getName().startsWith("test")) { System.out.println("About to run test method: " + m.getName()); - m.invoke(tests); + try { + m.invoke(tests); + } catch (InvocationTargetException ite) { + if (ite.getCause() instanceof SkippedException) { + System.out.println("Test PASSED: " + ite.getCause().getMessage()); + } else { + throw ite; + } + } numOfTestMethodsRun++; } }