提交 5f5b98b4 编写于 作者: W weijun

7173036: test/com/sun/jdi/ConnectedVMs.java does not run as expected

Reviewed-by: alanb
上级 fa8417bd
...@@ -28,10 +28,10 @@ ...@@ -28,10 +28,10 @@
* *
* @run build TestScaffold VMConnection TargetListener TargetAdapter * @run build TestScaffold VMConnection TargetListener TargetAdapter
* @run compile -g InstTarg.java * @run compile -g InstTarg.java
* @run main ConnectedVMs "Kill" * @run main ConnectedVMs Kill
* @run main ConnectedVMs "Resume to exit" * @run main ConnectedVMs Resume-to-exit
* @run main ConnectedVMs "dispose()" * @run main ConnectedVMs dispose()
* @run main ConnectedVMs "exit()" * @run main ConnectedVMs exit()
* *
* @summary ConnectedVMs checks the method * @summary ConnectedVMs checks the method
* VirtualMachineManager.connectedVirtualMachines() * VirtualMachineManager.connectedVirtualMachines()
...@@ -85,12 +85,14 @@ public class ConnectedVMs extends TestScaffold { ...@@ -85,12 +85,14 @@ public class ConnectedVMs extends TestScaffold {
// pick a way to die based on the input arg. // pick a way to die based on the input arg.
if (passName.equals("Kill")) { if (passName.equals("Kill")) {
vm().process().destroy(); vm().process().destroy();
} else if (passName.equals("Resume to exit")) { } else if (passName.equals("Resume-to-exit")) {
vm().resume(); vm().resume();
} else if (passName.equals("dispose()")) { } else if (passName.equals("dispose()")) {
vm().dispose(); vm().dispose();
} else if (passName.equals("exit()")) { } else if (passName.equals("exit()")) {
vm().exit(1); vm().exit(1);
} else {
throw new Exception("Unknown pass name");
} }
resumeToVMDisconnect(); resumeToVMDisconnect();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册