test/jdk/java/lang/instrument/TestAgentWithLimitMods.java
changeset 48397 ead47ddf5844
parent 47216 71c04702a3d5
equal deleted inserted replaced
48396:3c9975e46464 48397:ead47ddf5844
     1 /*
     1 /*
     2  * Copyright (c) 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2016, 2017, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
    22  */
    22  */
    23 
    23 
    24 /**
    24 /**
    25  *
    25  *
    26  * @test
    26  * @test
       
    27  * @requires !vm.graal.enabled
    27  * @summary Tests that the -javaagent option adds the java.instrument into
    28  * @summary Tests that the -javaagent option adds the java.instrument into
    28  * the module graph
    29  * the module graph
    29  *
    30  *
    30  * @run shell MakeJAR3.sh SimpleAgent
    31  * @run shell MakeJAR3.sh SimpleAgent
    31  * @run main/othervm -javaagent:SimpleAgent.jar --limit-modules java.base TestAgentWithLimitMods
    32  * @run main/othervm -javaagent:SimpleAgent.jar --limit-modules java.base TestAgentWithLimitMods