test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java	Fri Apr  6 15:48:25 2018
--- new/test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java	Fri Apr  6 15:48:25 2018

*** 87,101 **** --- 87,109 ---- argsList.add(1, "java.base"); argsList.remove(argsList.size() - 1); argsList.add("useAppLoader"); opts = new String[argsList.size()]; opts = argsList.toArray(opts); - TestCommon.run(opts).assertNormalExit(EXPECTED_EXCEPTION); + .assertSilentlyDisabledCDS(out -> { + out.shouldHaveExitValue(0) + .shouldContain(EXPECTED_EXCEPTION); + }); // case 4: load class in bootclasspath using boot loader with '--limit-modules java.base' argsList.remove(argsList.size() - 1); argsList.add("useBootLoader"); opts = new String[argsList.size()]; opts = argsList.toArray(opts); - TestCommon.run(opts).assertNormalExit(EXPECTED_EXCEPTION); + .assertSilentlyDisabledCDS(out -> { + out.shouldHaveExitValue(0) + .shouldContain(EXPECTED_EXCEPTION); + }); } }

test/hotspot/jtreg/runtime/appcds/jigsaw/classpathtests/EmptyClassInBootClassPath.java
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File