提交 0eb8454c 编写于 作者: C ctornqvi

8077608: [TESTBUG] Enable Hotspot jtreg tests to run in agentvm mode

8180904: Hotspot tests running with -agentvm failing due to classpath
Summary: Add -cp System.getProperty("java.class.path") to ProcessBuilder arguments.
Reviewed-by: sla, gtriantafill
上级 90f2f6f0
......@@ -262,6 +262,8 @@ endif
# Default JTREG to run
JTREG = $(JT_HOME)/bin/jtreg
# Use agent mode
JTREG_BASIC_OPTIONS += -agentvm
# Only run automatic tests
JTREG_BASIC_OPTIONS += -a
# Report details on all failed or error tests, times too
......
......@@ -26,7 +26,7 @@
* @bug 8042235
* @summary redefining method used by multiple MethodHandles crashes VM
* @compile -XDignore.symbol.file RedefineMethodUsedByMultipleMethodHandles.java
* @run main RedefineMethodUsedByMultipleMethodHandles
* @run main/othervm RedefineMethodUsedByMultipleMethodHandles
*/
import java.io.*;
......
......@@ -152,6 +152,9 @@ public final class ProcessTools {
args.add(javapath);
Collections.addAll(args, getPlatformSpecificVMArgs());
args.add("-cp");
args.add(System.getProperty("java.class.path"));
if (addTestVmOptions) {
String vmopts = System.getProperty("test.vm.opts");
if (vmopts != null && vmopts.length() > 0) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册