changeset 12132:b3cbb727df72

8167511: IgnoreModulePropertiesTest.java needs update for JDK-8162401 Reviewed-by: lfoltan, hseigel
author mchung
date Thu, 13 Oct 2016 08:00:10 -0700
parents 069490f406c3
children d3f508318705 1db1d5d9be10
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	Tue Oct 11 09:49:50 2016 +0200
+++ 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");
     }
 }