57 };
58
59 private final static String[] ERROR_MESSAGE = new String[]{
60 JvmciShutdownEventListener.GOT_INTERNAL_ERROR
61 };
62
63 public static void main(String args[]) throws Throwable {
64 boolean addTestVMOptions = true;
65 CommandLineOptionTest.verifyJVMStartup(MESSAGE, ERROR_MESSAGE,
66 "Unexpected exit code with +EnableJVMCI",
67 "Unexpected output with +EnableJVMCI", ExitCode.OK,
68 addTestVMOptions, "-XX:+UnlockExperimentalVMOptions",
69 "-XX:+EnableJVMCI", "-Xbootclasspath/a:.",
70 JvmciShutdownEventListener.class.getName()
71 );
72
73 CommandLineOptionTest.verifyJVMStartup(ERROR_MESSAGE, MESSAGE,
74 "Unexpected exit code with -EnableJVMCI",
75 "Unexpected output with -EnableJVMCI", ExitCode.OK,
76 addTestVMOptions, "-XX:+UnlockExperimentalVMOptions",
77 "-XX:-EnableJVMCI", "-Xbootclasspath/a:.",
78 JvmciShutdownEventListener.class.getName()
79 );
80 }
81 }
|
57 };
58
59 private final static String[] ERROR_MESSAGE = new String[]{
60 JvmciShutdownEventListener.GOT_INTERNAL_ERROR
61 };
62
63 public static void main(String args[]) throws Throwable {
64 boolean addTestVMOptions = true;
65 CommandLineOptionTest.verifyJVMStartup(MESSAGE, ERROR_MESSAGE,
66 "Unexpected exit code with +EnableJVMCI",
67 "Unexpected output with +EnableJVMCI", ExitCode.OK,
68 addTestVMOptions, "-XX:+UnlockExperimentalVMOptions",
69 "-XX:+EnableJVMCI", "-Xbootclasspath/a:.",
70 JvmciShutdownEventListener.class.getName()
71 );
72
73 CommandLineOptionTest.verifyJVMStartup(ERROR_MESSAGE, MESSAGE,
74 "Unexpected exit code with -EnableJVMCI",
75 "Unexpected output with -EnableJVMCI", ExitCode.OK,
76 addTestVMOptions, "-XX:+UnlockExperimentalVMOptions",
77 "-XX:-EnableJVMCI", "-XX:-UseJVMCICompiler", "-Xbootclasspath/a:.",
78 JvmciShutdownEventListener.class.getName()
79 );
80 }
81 }
|