test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
open Cdiff test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java
test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java
Print this page
*** 171,177 ****
--- 171,186 ----
"-cp", destJar.toString(),
"--module-path", moduleDir.toString(),
"-m", TEST_MODULE1)
.assertAbnormalExit(
"A jar/jimage file is not the one used while building the shared archive file:");
+ // create an archive with a non-empty directory in the --module-path.
+ // The dumping process will exit with an error due to non-empty directory
+ // in the --module-path.
+ output = TestCommon.createArchive(destJar.toString(), appClasses,
+ "-Xlog:class+load=trace",
+ "--module-path", MODS_DIR.toString(),
+ "-m", TEST_MODULE1);
+ output.shouldHaveExitValue(1)
+ .shouldMatch("Error: non-empty directory.*com.simple");
}
}
test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File