8204701: [TESTBUG] runtime/SharedArchiveFile/BootAppendTests.java should handle mapping failure
Summary: Added code to check for mapping failure
Reviewed-by: ccheung, jiangli
--- a/test/hotspot/jtreg/runtime/SharedArchiveFile/BootAppendTests.java Wed Jun 20 17:15:16 2018 +0200
+++ b/test/hotspot/jtreg/runtime/SharedArchiveFile/BootAppendTests.java Wed Jun 20 09:42:36 2018 -0700
@@ -166,9 +166,10 @@
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);
+ });
}
}