test/serviceability/sa/jmap-hprof/JMapHProfLargeHeapTest.java

changeset 5934
d6818f623792
parent 5845
8ef918538e22
child 5947
c51cd6af7e61
equal deleted inserted replaced
5933:24f32d09a0d7 5934:d6818f623792
57 57
58 public static void main(String[] args) throws Exception { 58 public static void main(String[] args) throws Exception {
59 // If we are on MacOSX, test if JMap tool is signed, otherwise return 59 // If we are on MacOSX, test if JMap tool is signed, otherwise return
60 // since test will fail with privilege error. 60 // since test will fail with privilege error.
61 if (Platform.isOSX()) { 61 if (Platform.isOSX()) {
62 String jmapToolPath = JDKToolFinder.getCurrentJDKTool("jmap"); 62 String jmapToolPath = JDKToolFinder.getTestJDKTool("jmap");
63 ProcessBuilder codesignProcessBuilder = new ProcessBuilder( 63 ProcessBuilder codesignProcessBuilder = new ProcessBuilder(
64 "codesign", "-v", jmapToolPath); 64 "codesign", "-v", jmapToolPath);
65 Process codesignProcess = codesignProcessBuilder.start(); 65 Process codesignProcess = codesignProcessBuilder.start();
66 OutputAnalyzer analyser = new OutputAnalyzer(codesignProcess); 66 OutputAnalyzer analyser = new OutputAnalyzer(codesignProcess);
67 try { 67 try {

mercurial