mirror of
https://github.com/openjdk/jdk.git
synced 2026-05-19 01:47:52 +00:00
8235563: [TESTBUG] appcds/CommandLineFlagComboNegative.java does not handle archive mapping failure
Use the assertAbnormalExit method of the CDSTestUtils.Result class to handle archive mapping failure. Reviewed-by: iklam
This commit is contained in:
parent
bdaa9c6a1c
commit
fae788a200
@ -85,9 +85,14 @@ public class CommandLineFlagComboNegative {
|
||||
|
||||
TestCommon.checkDump(dumpOutput, "Loading classes to share");
|
||||
|
||||
OutputAnalyzer execOutput = TestCommon.exec(appJar, testEntry.testOptionForExecuteStep, "Hello");
|
||||
execOutput.shouldContain(testEntry.expectedErrorMsg);
|
||||
execOutput.shouldHaveExitValue(testEntry.expectedErrorCode);
|
||||
TestCommon.run(
|
||||
"-cp", appJar,
|
||||
testEntry.testOptionForExecuteStep,
|
||||
"Hello")
|
||||
.assertAbnormalExit(output -> {
|
||||
output.shouldContain(testEntry.expectedErrorMsg)
|
||||
.shouldHaveExitValue(testEntry.expectedErrorCode);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user