changeset 49162:c200b4700aeb

8195065: runtime/appcds/ProhibitedPackage.java intermittent failure Reviewed-by: mseledtsov
author iklam
date Sat, 24 Feb 2018 22:42:37 -0800
parents 8f1bc5a0d16d
children 580bb0b85f63
files test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java	Sat Feb 03 10:36:58 2018 +0800
+++ b/test/hotspot/jtreg/runtime/appcds/ProhibitedPackage.java	Sat Feb 24 22:42:37 2018 -0800
@@ -34,6 +34,7 @@
  * @run main ProhibitedPackage
  */
 
+import jdk.test.lib.cds.CDSOptions;
 import jdk.test.lib.Platform;
 import jdk.test.lib.process.OutputAnalyzer;
 
@@ -85,7 +86,8 @@
         output = TestCommon.execAuto(
             "-XX:+UnlockDiagnosticVMOptions", "-XX:+WhiteBoxAPI",
             "-cp", appJar, "-Xlog:class+load=info", "ProhibitedHelper");
-        TestCommon.checkExec(output, "Prohibited package name: java.lang");
+        CDSOptions opts = (new CDSOptions()).setXShareMode("auto");
+        TestCommon.checkExec(output, opts, "Prohibited package name: java.lang");
 
         // -Xshare:off
         output = TestCommon.execOff(