< prev index next >

test/runtime/PerfMemDestroy/PerfMemDestroy.java

Print this page

        

*** 23,41 **** /* * @test * @bug 8030955 * @summary Allow multiple calls to PerfMemory::destroy() without asserting. ! * @library /testlibrary * @modules java.base/jdk.internal.misc * java.management * @run main PerfMemDestroy */ import java.io.File; import java.util.Map; ! import jdk.test.lib.*; public class PerfMemDestroy { public static void main(String args[]) throws Throwable { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+PerfAllowAtExitRegistration", "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start()); --- 23,42 ---- /* * @test * @bug 8030955 * @summary Allow multiple calls to PerfMemory::destroy() without asserting. ! * @library /test/lib * @modules java.base/jdk.internal.misc * java.management * @run main PerfMemDestroy */ import java.io.File; import java.util.Map; ! import jdk.test.lib.process.ProcessTools; ! import jdk.test.lib.process.OutputAnalyzer; public class PerfMemDestroy { public static void main(String args[]) throws Throwable { ProcessBuilder pb = ProcessTools.createJavaProcessBuilder("-XX:+PerfAllowAtExitRegistration", "-version"); OutputAnalyzer output = new OutputAnalyzer(pb.start());
< prev index next >