--- old/test/lib/jdk/test/lib/cds/CDSTestUtils.java 2018-08-09 13:43:57.881806310 -0700 +++ new/test/lib/jdk/test/lib/cds/CDSTestUtils.java 2018-08-09 13:43:57.765806313 -0700 @@ -32,7 +32,7 @@ import jdk.test.lib.Utils; import jdk.test.lib.process.OutputAnalyzer; import jdk.test.lib.process.ProcessTools; - +import jtreg.SkippedException; // This class contains common test utilities for testing CDS public class CDSTestUtils { @@ -223,7 +223,7 @@ public static final String TestTimeoutFactor = System.getProperty("test.timeout.factor", "1.0"); public static final String UnableToMapMsg = - "Unable to map shared archive: test did not complete; assumed PASS"; + "Unable to map shared archive: test did not complete"; // Create bootstrap CDS archive, // use extra JVM command line args as a prefix. @@ -314,8 +314,7 @@ // at given address. This behavior is platform-specific, machine config-specific // and can be random (see ASLR). if (isUnableToMap(output)) { - System.out.println(UnableToMapMsg); - return true; + throw new SkippedException(UnableToMapMsg); } if (e != null) { @@ -446,8 +445,7 @@ int expectedExitValue, String... extraMatches) throws Exception { if (isUnableToMap(output)) { - System.out.println(UnableToMapMsg); - return output; + throw new SkippedException(UnableToMapMsg); } output.shouldHaveExitValue(expectedExitValue);