提交 03a06d93 编写于 作者: A asapre

8174915: Improve error handing for Jdp tests under sun/management/jdp

Summary: Added checks for abnormal exits of spawn process by test cases
Reviewed-by: dholmes, dfuchs, sspitsyn
Contributed-by: amit.sapre@oracle.com
上级 663883ad
......@@ -58,6 +58,11 @@ public abstract class DynamicLauncher {
}
}
} while (tryAgain);
output.shouldHaveExitValue(0);
// java.lang.Exception is thrown by JdpTestCase if something goes wrong
// for instance - see JdpTestCase::shutdown()
output.shouldNotContain("java.lang.Exception:");
output.shouldNotContain("Error: Could not find or load main class");
}
protected OutputAnalyzer runVM() throws Exception {
......
......@@ -40,7 +40,6 @@ public class JdpJmxRemoteDynamicPortTest extends DynamicLauncher {
public static void main(String[] args) throws Exception {
DynamicLauncher launcher = new JdpJmxRemoteDynamicPortTest();
launcher.run();
launcher.getProcessOutpoutAnalyzer().stderrShouldNotContain("java.lang.Exception:");
}
protected String[] options() {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册