test/hotspot/jtreg/runtime/appcds/jigsaw/modulepath/MainModuleOnly.java
changeset 50079 5830a17d9fc8
parent 49942 f4310c01104d
child 50199 83d8b3a25f25
equal deleted inserted replaced
50078:5730ca794584 50079:5830a17d9fc8
   171                        "-cp", destJar.toString(),
   171                        "-cp", destJar.toString(),
   172                        "--module-path", moduleDir.toString(),
   172                        "--module-path", moduleDir.toString(),
   173                        "-m", TEST_MODULE1)
   173                        "-m", TEST_MODULE1)
   174             .assertAbnormalExit(
   174             .assertAbnormalExit(
   175                 "A jar/jimage file is not the one used while building the shared archive file:");
   175                 "A jar/jimage file is not the one used while building the shared archive file:");
       
   176         // create an archive with a non-empty directory in the --module-path.
       
   177         // The dumping process will exit with an error due to non-empty directory
       
   178         // in the --module-path.
       
   179         output = TestCommon.createArchive(destJar.toString(), appClasses,
       
   180                                           "-Xlog:class+load=trace",
       
   181                                           "--module-path", MODS_DIR.toString(),
       
   182                                           "-m", TEST_MODULE1);
       
   183         output.shouldHaveExitValue(1)
       
   184               .shouldMatch("Error: non-empty directory.*com.simple");
   176     }
   185     }
   177 }
   186 }