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:
parent
8c5dfa21b3
commit
a22821323a
@ -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);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user