8167511: IgnoreModulePropertiesTest.java needs update for JDK-8162401
authormchung
Thu, 13 Oct 2016 08:00:10 -0700
changeset 41466 64ceb6e0264a
parent 41465 2b9154b407e6
child 41467 45f3ffa45ebc
child 41692 6a0b0026bc25
8167511: IgnoreModulePropertiesTest.java needs update for JDK-8162401 Reviewed-by: lfoltan, hseigel
hotspot/test/runtime/modules/IgnoreModulePropertiesTest.java
--- a/hotspot/test/runtime/modules/IgnoreModulePropertiesTest.java	Tue Oct 11 09:49:50 2016 +0200
+++ b/hotspot/test/runtime/modules/IgnoreModulePropertiesTest.java	Thu Oct 13 08:00:10 2016 -0700
@@ -67,10 +67,11 @@
     }
 
     public static void main(String[] args) throws Exception {
-        testOption("--add-modules", "java.sqlx", "jdk.module.addmods", "java.lang.module.ResolutionException");
+        testOption("--add-modules", "java.sqlx", "jdk.module.addmods.0", "java.lang.module.ResolutionException");
         testOption("--limit-modules", "java.sqlx", "jdk.module.limitmods", "java.lang.module.ResolutionException");
-        testOption("--add-reads", "xyzz=yyzd", "jdk.module.addreads.0", "java.lang.RuntimeException");
-        testOption("--add-exports", "java.base/xyzz=yyzd", "jdk.module.addexports.0", "java.lang.RuntimeException");
+        testOption("--add-reads", "xyzz=yyzd", "jdk.module.addreads.0", "WARNING: Unknown module: xyzz");
+        testOption("--add-exports", "java.base/xyzz=yyzd", "jdk.module.addexports.0",
+                   "WARNING: package xyzz not in java.base");
         testOption("--patch-module", "=d", "jdk.module.patch.0", "IllegalArgumentException");
     }
 }