--- old/test/lib/jdk/test/lib/cds/CDSTestUtils.java 2018-04-08 23:07:29.166465240 -0700 +++ new/test/lib/jdk/test/lib/cds/CDSTestUtils.java 2018-04-08 23:07:28.873437627 -0700 @@ -166,6 +166,13 @@ return this; } + public Result assertSilentlyDisabledCDS(int exitCode, String... matches) throws Exception { + return assertSilentlyDisabledCDS((out) -> { + out.shouldHaveExitValue(exitCode); + checkMatches(out, matches); + }); + } + public Result ifNormalExit(Checker checker) throws Exception { if (hasNormalExit) { checker.check(output);