logWriter.println("allow to start thread");
synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE);
try {
EventPacket event = debuggeeWrapper.vmMirror.receiveEvent(settings.getTimeout());
logWriter.printError("unexpected event received: " + event);
fail("unexpected event received");
} catch (TimeoutException e) {
logWriter.println("no events were received");
} catch (Exception e) {
throw new TestErrorException(e);
}
logWriter.println("send ReleaseEvents");
packet = new CommandPacket(
JDWPCommands.VirtualMachineCommandSet.CommandSetID,
JDWPCommands.VirtualMachineCommandSet.ReleaseEventsCommand);
debuggeeWrapper.vmMirror.performCommand(packet);
EventPacket event = debuggeeWrapper.vmMirror.receiveCertainEvent(JDWPConstants.EventKind.THREAD_START);
logWriter.println("expected event received: " + event);
debuggeeWrapper.vmMirror.resume();
}