8204701: [TESTBUG] runtime/SharedArchiveFile/BootAppendTests.java should handle mapping failure

Added code to check for mapping failure

Reviewed-by: ccheung, jiangli
This commit is contained in:
Mikhailo Seledtsov 2018-06-20 09:42:36 -07:00
parent 8c5dfa21b3
commit a22821323a

View File

@ -166,9 +166,10 @@ public class BootAppendTests {
APP_CLASS, BOOT_APPEND_DUPLICATE_MODULE_CLASS_NAME);
String MATCH_PATTERN = ".class.load. javax.annotation.processing.FilerException source:.*bootAppend.jar*";
OutputAnalyzer out = CDSTestUtils.runWithArchive(opts);
out.shouldHaveExitValue(0)
.shouldNotMatch(MATCH_PATTERN);
CDSTestUtils.run(opts)
.assertNormalExit(out -> {
out.shouldNotMatch(MATCH_PATTERN);
});
}
}