--- old/test/hotspot/jtreg/ProblemList.txt 2017-12-01 09:33:47.578418638 +0530 +++ new/test/hotspot/jtreg/ProblemList.txt 2017-12-01 09:33:47.306418638 +0530 @@ -85,7 +85,6 @@ serviceability/sa/sadebugd/SADebugDTest.java 8163805 generic-all serviceability/jvmti/ModuleAwareAgents/ClassFileLoadHook/MAAClassFileLoadHook.java 8173936 generic-all serviceability/sa/TestRevPtrsForInvokeDynamic.java 8191270 generic-all -serviceability/sa/TestJhsdbJstackLock.java 8191914 windows-all ############################################################################# # :hotspot_misc --- old/test/hotspot/jtreg/serviceability/sa/JhsdbThreadInfoTest.java 2017-12-01 09:33:48.274418638 +0530 +++ new/test/hotspot/jtreg/serviceability/sa/JhsdbThreadInfoTest.java 2017-12-01 09:33:48.042418638 +0530 @@ -56,10 +56,10 @@ pb.command(jhsdbLauncher.getCommand()); Process jhsdb = pb.start(); - jhsdb.waitFor(); - OutputAnalyzer out = new OutputAnalyzer(jhsdb); + jhsdb.waitFor(); + System.out.println(out.getStdout()); System.err.println(out.getStderr()); --- old/test/hotspot/jtreg/serviceability/sa/TestClhsdbJstackLock.java 2017-12-01 09:33:49.022418638 +0530 +++ new/test/hotspot/jtreg/serviceability/sa/TestClhsdbJstackLock.java 2017-12-01 09:33:48.790418638 +0530 @@ -129,22 +129,16 @@ throw new Error("Problem issuing the jstack command: " + str, ioe); } + OutputAnalyzer output = new OutputAnalyzer(p); + try { p.waitFor(); } catch (InterruptedException ie) { + p.destroyForcibly(); throw new Error("Problem awaiting the child process: " + ie, ie); } - int exitValue = p.exitValue(); - if (exitValue != 0) { - String output; - try { - output = new OutputAnalyzer(p).getOutput(); - } catch (IOException ioe) { - throw new Error("Can't get failed clhsdb process output: " + ioe, ioe); - } - throw new AssertionError("clhsdb wasn't run successfully: " + output); - } + output.shouldHaveExitValue(0); } public static void main (String... args) throws Exception { --- old/test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLock.java 2017-12-01 09:33:49.750418638 +0530 +++ new/test/hotspot/jtreg/serviceability/sa/TestJhsdbJstackLock.java 2017-12-01 09:33:49.502418638 +0530 @@ -65,10 +65,10 @@ ProcessBuilder pb = new ProcessBuilder(); pb.command(launcher.getCommand()); Process jhsdb = pb.start(); + OutputAnalyzer out = new OutputAnalyzer(jhsdb); jhsdb.waitFor(); - OutputAnalyzer out = new OutputAnalyzer(jhsdb); System.out.println(out.getStdout()); System.err.println(out.getStderr()); --- old/test/hotspot/jtreg/serviceability/sa/TestPrintMdo.java 2017-12-01 09:33:50.442418638 +0530 +++ new/test/hotspot/jtreg/serviceability/sa/TestPrintMdo.java 2017-12-01 09:33:50.206418638 +0530 @@ -132,22 +132,16 @@ throw new Error("Problem issuing the printmdo command: " + str, ioe); } + OutputAnalyzer output = new OutputAnalyzer(p); + try { p.waitFor(); } catch (InterruptedException ie) { + p.destroyForcibly(); throw new Error("Problem awaiting the child process: " + ie, ie); } - int exitValue = p.exitValue(); - if (exitValue != 0) { - String output; - try { - output = new OutputAnalyzer(p).getOutput(); - } catch (IOException ioe) { - throw new Error("Can't get failed clhsdb process output: " + ioe, ioe); - } - throw new AssertionError("clhsdb wasn't run successfully: " + output); - } + output.shouldHaveExitValue(0); } public static void main (String... args) throws Exception {