Skip to content
Permalink
Browse files
8260707: java/lang/instrument/PremainClass/InheritAgent0100.java time…
…s out

Co-authored-by: Arno Zeller <azeller@openjdk.org>
Reviewed-by: dholmes, sspitsyn, dcubed
  • Loading branch information
tstuefe and ArnoZeller committed Feb 2, 2021
1 parent 0093183 commit d7b1fc59a51ef2d0f2d9106d9241be44cbe02ee8
@@ -36,7 +36,7 @@ public static void main(String argv[]) throws Exception {
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 {

0 comments on commit d7b1fc5

Please sign in to comment.