8260707: java/lang/instrument/PremainClass/InheritAgent0100.java times out
Co-authored-by: Arno Zeller <azeller@openjdk.org> Reviewed-by: dholmes, sspitsyn, dcubed
This commit is contained in:
parent
0093183b33
commit
d7b1fc59a5
@ -36,7 +36,7 @@ public class NegativeAgentRunner {
|
||||
String agentClassName = argv[0];
|
||||
String excepClassName = argv[1];
|
||||
ProcessBuilder pb = ProcessTools.createJavaProcessBuilder(
|
||||
"-javaagent:" + agentClassName + ".jar",
|
||||
"-javaagent:" + agentClassName + ".jar", "-Xmx128m", "-XX:-CreateCoredumpOnCrash",
|
||||
agentClassName);
|
||||
OutputAnalyzer output = new OutputAnalyzer(pb.start());
|
||||
output.shouldContain(excepClassName);
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2021, 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
|
||||
@ -31,7 +31,7 @@
|
||||
* @build jdk.java.lang.instrument.PremainClass.NoPremainAgent
|
||||
* @run driver jdk.test.lib.util.JavaAgentBuilder
|
||||
* NoPremainAgent NoPremainAgent.jar
|
||||
* @run main/othervm -XX:-CreateCoredumpOnCrash jdk.java.lang.instrument.NegativeAgentRunner NoPremainAgent NoSuchMethodException
|
||||
* @run main/othervm jdk.java.lang.instrument.NegativeAgentRunner NoPremainAgent NoSuchMethodException
|
||||
*/
|
||||
|
||||
public class NoPremainAgent {
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2008, 2020, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2008, 2021, 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
|
||||
@ -32,7 +32,7 @@
|
||||
* @build jdk.java.lang.instrument.PremainClass.ZeroArgPremainAgent
|
||||
* @run driver jdk.test.lib.util.JavaAgentBuilder
|
||||
* ZeroArgPremainAgent ZeroArgPremainAgent.jar
|
||||
* @run main/othervm -XX:-CreateCoredumpOnCrash jdk.java.lang.instrument.NegativeAgentRunner ZeroArgPremainAgent NoSuchMethodException
|
||||
* @run main/othervm jdk.java.lang.instrument.NegativeAgentRunner ZeroArgPremainAgent NoSuchMethodException
|
||||
*/
|
||||
|
||||
public class ZeroArgPremainAgent {
|
||||
|
Loading…
Reference in New Issue
Block a user