17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /*
26 * @test CommandLineFlagComboNegative
27 * @summary Test command line flag combinations that differ between
28 * the dump and execute steps, in such way that they cause errors
29 * E.g. use compressed oops for creating and archive, but then
30 * execute w/o compressed oops
31 * @requires vm.cds
32 * @library /test/lib
33 * @modules java.base/jdk.internal.misc
34 * java.management
35 * jdk.jartool/sun.tools.jar
36 * @compile test-classes/Hello.java
37 * @run main CommandLineFlagComboNegative
38 */
39
40 import java.util.ArrayList;
41 import jdk.test.lib.Platform;
42 import jdk.test.lib.process.OutputAnalyzer;
43
44 public class CommandLineFlagComboNegative {
45
46 private class TestVector {
47 public String testOptionForDumpStep;
48 public String testOptionForExecuteStep;
49 public String expectedErrorMsg;
50 public int expectedErrorCode;
51
52 public TestVector(String testOptionForDumpStep, String testOptionForExecuteStep,
53 String expectedErrorMsg, int expectedErrorCode) {
54 this.testOptionForDumpStep=testOptionForDumpStep;
55 this.testOptionForExecuteStep=testOptionForExecuteStep;
56 this.expectedErrorMsg=expectedErrorMsg;
57 this.expectedErrorCode=expectedErrorCode;
|
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 /*
26 * @test CommandLineFlagComboNegative
27 * @summary Test command line flag combinations that differ between
28 * the dump and execute steps, in such way that they cause errors
29 * E.g. use compressed oops for creating and archive, but then
30 * execute w/o compressed oops
31 * @requires vm.cds
32 * @library /test/lib
33 * @modules java.base/jdk.internal.misc
34 * java.management
35 * jdk.jartool/sun.tools.jar
36 * @compile test-classes/Hello.java
37 * @run driver CommandLineFlagComboNegative
38 */
39
40 import java.util.ArrayList;
41 import jdk.test.lib.Platform;
42 import jdk.test.lib.process.OutputAnalyzer;
43
44 public class CommandLineFlagComboNegative {
45
46 private class TestVector {
47 public String testOptionForDumpStep;
48 public String testOptionForExecuteStep;
49 public String expectedErrorMsg;
50 public int expectedErrorCode;
51
52 public TestVector(String testOptionForDumpStep, String testOptionForExecuteStep,
53 String expectedErrorMsg, int expectedErrorCode) {
54 this.testOptionForDumpStep=testOptionForDumpStep;
55 this.testOptionForExecuteStep=testOptionForExecuteStep;
56 this.expectedErrorMsg=expectedErrorMsg;
57 this.expectedErrorCode=expectedErrorCode;
|