1bd7ebbd135d3a0b13d728fa4e73996020c4a14f |
08-Oct-2014 |
Sebastien Hertz <shertz@google.com> |
Test event requests with LocationOnly modifier other than breakpoint Checks we correctly support LocationOnly modifier for all possible events other than breakpoint: single-step, exception, field access and field modification events. For exception and field access/modification events, we throw or access/modify a field in two different methods. Then we request corresponding event with a LocationOnly modifier related to the second method only. Since a location is {class id, method id, code index}, we'd need to know exactly the code index where the event can be reported. As we do not know the code (instructions and their respective code index), we simply send an event request for each location. The common testing code is in EventLocationEventTestCase class. For single-step, we can't do the same because we can't request multiple single-step events on the same thread. So we suspend in a method, then single-step to the location of the last line of this method. Also move "resume debuggee" message into JDWPTestCase.resumeDebuggee method so this is printed for all tests using it. Bug: 17908144 (cherry picked from commit 684d91ef9b8c8022f19cc0d51598c2402303ed7c) Change-Id: Iaa9698f6b16239a779f3afe7870fc66c9bcf553b
DWPTestCase.java
|
d38d553d7def2dfc28847a1068509dfa526f6a9d |
19-Feb-2014 |
Yevgeny Rouban <yevgeny.y.rouban@intel.com> |
Apache Harmony Tests: Check ACC_SUPER flag is unset for interfaces Added one new JDWP test to check that ACC_SUPER is not set for interfaces. To pass this test ART needs the debugger patch I6cc4b215a6584d177845a4f8cce1efeb1650f646. Change-Id: Ie9b4d297c9a3a8f1226dc7cc2da6fb28591dbc57 Signed-off-by: Yevgeny Rouban <yevgeny.y.rouban@intel.com>
ebuggee/HelloWorld.java
|
c688942db58f6e3bed189c1e5416a010f20f8bb8 |
10-Jan-2014 |
Sebastien Hertz <shertz@google.com> |
Update JDWP collection tests. - Create JDWPTestConstants class holding constant for 'null' object id and invalid id and update related tests to use them. - Update IsCollectedTest#testIsCollected002 to check no error is returned in case of invalid object id. - Fix IsCollectedTest#testIsCollected003 by using appropriate 'null' object id. Bug: 12221035 Change-Id: I0b66513866b7220e49d8589088e8c7ea2d1fbbaf
DWPTestConstants.java
|
5f0a23683aa603d8c50b6dd071a565821b76067b |
10-Dec-2011 |
Elliott Hughes <enh@google.com> |
Add harmony's jdwp tests. Change-Id: I1c0e70cd9e07244fe422a4f77f3727b55ec28402
DWPManualDebuggeeWrapper.java
DWPRawTestCase.java
DWPSyncTestCase.java
DWPTestCase.java
DWPUnitDebuggeeProcessWrapper.java
DWPUnitDebuggeeWrapper.java
ebuggee/HelloWorld.java
ebuggee/InvokeMethodDebuggee.java
ebuggee/SimpleHelloWorld.java
|