< prev index next >

test/jdk/sun/tools/jmap/BasicJMapTest.java

Print this page

        

*** 77,97 **** OutputAnalyzer output = jmap("-histo:all"); output.shouldHaveExitValue(0); } private static void testHistoParallelZero() throws Exception { ! OutputAnalyzer output = jmap("-histo:parallelThreadNum=0"); output.shouldHaveExitValue(0); } private static void testHistoParallel() throws Exception { ! OutputAnalyzer output = jmap("-histo:parallelThreadNum=2"); output.shouldHaveExitValue(0); } private static void testHistoNonParallel() throws Exception { ! OutputAnalyzer output = jmap("-histo:parallelThreadNum=1"); output.shouldHaveExitValue(0); } private static void testHistoToFile() throws Exception { histoToFile(false); --- 77,97 ---- OutputAnalyzer output = jmap("-histo:all"); output.shouldHaveExitValue(0); } private static void testHistoParallelZero() throws Exception { ! OutputAnalyzer output = jmap("-histo:parallel=0"); output.shouldHaveExitValue(0); } private static void testHistoParallel() throws Exception { ! OutputAnalyzer output = jmap("-histo:parallel=2"); output.shouldHaveExitValue(0); } private static void testHistoNonParallel() throws Exception { ! OutputAnalyzer output = jmap("-histo:parallel=1"); output.shouldHaveExitValue(0); } private static void testHistoToFile() throws Exception { histoToFile(false);
*** 147,157 **** private static void histoToFile(boolean live, boolean explicitAll, int parallelThreadNum) throws Exception { String liveArg = ""; String fileArg = ""; ! String parArg = "parallelThreadNum=" + parallelThreadNum; String allArgs = "-histo:"; if (live == true && explicitAll == true) { fail("Illegal argument setting for jmap -histo"); } --- 147,157 ---- private static void histoToFile(boolean live, boolean explicitAll, int parallelThreadNum) throws Exception { String liveArg = ""; String fileArg = ""; ! String parArg = "parallel=" + parallelThreadNum; String allArgs = "-histo:"; if (live == true && explicitAll == true) { fail("Illegal argument setting for jmap -histo"); }
< prev index next >