From 9ce5fdc96262ac80c5a2ac2d51a149408d3d727a Mon Sep 17 00:00:00 2001 From: Ioi Lam Date: Mon, 3 Apr 2023 22:28:58 +0000 Subject: [PATCH] 8305421: Work around JDK-8305420 in CDSJDITest.java Reviewed-by: cjplummer --- test/jdk/com/sun/jdi/cds/CDSJDITest.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/test/jdk/com/sun/jdi/cds/CDSJDITest.java b/test/jdk/com/sun/jdi/cds/CDSJDITest.java index e10c61d748c..22abd30163f 100644 --- a/test/jdk/com/sun/jdi/cds/CDSJDITest.java +++ b/test/jdk/com/sun/jdi/cds/CDSJDITest.java @@ -1,5 +1,5 @@ /* - * Copyright (c) 2013, 2020, Oracle and/or its affiliates. All rights reserved. + * Copyright (c) 2013, 2023, Oracle and/or its affiliates. All rights reserved. * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. * * This code is free software; you can redistribute it and/or modify it @@ -61,7 +61,6 @@ public class CDSJDITest { // pass them as JVM arguments to the debuggee process it creates. "-Xbootclasspath/a:" + appJar, "-XX:+UnlockDiagnosticVMOptions", - "-Xlog:class+path=info", "-XX:SharedArchiveFile=./SharedArchiveFile.jsa", "-Xshare:on", "-showversion" @@ -73,7 +72,7 @@ public class CDSJDITest { "-XX:+UnlockDiagnosticVMOptions", "-XX:SharedArchiveFile=./SharedArchiveFile.jsa", "-XX:ExtraSharedClassListFile=" + jarClasslistFile.getPath(), "-Xshare:dump", "-Xlog:cds"); - OutputAnalyzer outputDump = executeAndLog(pb, "exec"); + OutputAnalyzer outputDump = executeAndLog(pb, "dump"); for (String jarClass : jarClasses) { outputDump.shouldNotContain("Cannot find " + jarClass); }