< prev index next >
test/jdk/tools/launcher/TestSpecialArgs.java
Print this page
*** 244,253 ****
--- 244,257 ----
// resolution is performed by the JVM.
tr = doExec(javaCmd, "AbsentClass", "-XX:NativeMemoryTracking=summary");
if (!tr.contains("Error: Could not find or load main class AbsentClass")) {
throw new RuntimeException("Test Fails");
}
+
+ // Make sure we handle correctly the module long form (--module=)
+ tr = doExec(javaCmd, "-XX:NativeMemoryTracking=summary", "--module=jdk.compiler/com.sun.tools.javac.Main", "--help");
+ ensureNoWarnings(tr);
}
void ensureNoWarnings(TestResult tr) {
checkTestResult(tr);
if (tr.contains("warning: Native Memory Tracking")) {
< prev index next >