changeset 12609:7f5f6554f780

8167511: IgnoreModulePropertiesTest.java needs update for JDK-8162401 Reviewed-by: lfoltan, hseigel
author mchung
date Thu, 13 Oct 2016 08:00:10 -0700
parents c94a89bcee37
children 3b0fd4bfd0a4
files test/runtime/modules/IgnoreModulePropertiesTest.java
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/test/runtime/modules/IgnoreModulePropertiesTest.java	Thu Oct 13 14:20:50 2016 +0100
+++ b/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");
     }
 }