8242859: test/jdk/tools/jlink/JLinkTest.java uses nashorn module
Reviewed-by: jlaskey
This commit is contained in:
parent
f04a7e5cb4
commit
124caec26c
@ -109,6 +109,28 @@ public class JLinkTest {
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
// No --module-path specified. $JAVA_HOME/jmods should be assumed.
|
||||
// The following should succeed as it uses only system modules.
|
||||
String imageDir = "bug818977-no-modulepath";
|
||||
JImageGenerator.getJLinkTask()
|
||||
.output(helper.createNewImageDir(imageDir))
|
||||
.addMods("jdk.jshell")
|
||||
.call().assertSuccess();
|
||||
}
|
||||
|
||||
{
|
||||
// invalid --module-path specified. java.base not found it it.
|
||||
// $JAVA_HOME/jmods should be added automatically.
|
||||
// The following should succeed as it uses only system modules.
|
||||
String imageDir = "bug8189777-invalid-modulepath";
|
||||
JImageGenerator.getJLinkTask()
|
||||
.modulePath("does_not_exist_path")
|
||||
.output(helper.createNewImageDir(imageDir))
|
||||
.addMods("jdk.jshell")
|
||||
.call().assertSuccess();
|
||||
}
|
||||
|
||||
{
|
||||
// No --module-path specified. --add-modules ALL-MODULE-PATH specified.
|
||||
String imageDir = "bug8189777-all-module-path";
|
||||
|
Loading…
x
Reference in New Issue
Block a user