summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Hertz <shertz@google.com>2014-10-03 07:32:58 +0000
committerGerrit Code Review <noreply-gerritcodereview@google.com>2014-10-03 07:32:58 +0000
commit44eb9e58deb4e1503267edc0d20ba2888197380e (patch)
tree56978dced9e7905851296f92635772fa09f0ed82
parentd4daf0acc759f4bb512bb4749c6ba86f22eb9cdb (diff)
parent24da531ab0cb3af0a5c96d1a53b0d2c8178ab3b0 (diff)
downloadapache-harmony-44eb9e58deb4e1503267edc0d20ba2888197380e.tar.gz
Merge "Fix OwnedMonitorsStackDepthInfo JDWP tests"
-rw-r--r--jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/OwnedMonitorsStackDepthInfoTest.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/OwnedMonitorsStackDepthInfoTest.java b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/OwnedMonitorsStackDepthInfoTest.java
index 3ec2373..6f54259 100644
--- a/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/OwnedMonitorsStackDepthInfoTest.java
+++ b/jdwp/src/test/java/org/apache/harmony/jpda/tests/jdwp/ThreadReference/OwnedMonitorsStackDepthInfoTest.java
@@ -72,6 +72,9 @@ public class OwnedMonitorsStackDepthInfoTest extends JDWPSyncTestCase {
logWriter.println("==> " + thisTestName + " for " + thisCommandName + ": START...");
synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
+ // Ensure we signal the debuggee to continue at the end of the test.
+ finalSyncMessage = JPDADebuggeeSynchronizer.SGNL_CONTINUE;
+
if (!isCapability()) {
logWriter.println("##WARNING: this VM dosn't possess capability: canGetMonitorFrameInfo");
return;
@@ -147,7 +150,6 @@ public class OwnedMonitorsStackDepthInfoTest extends JDWPSyncTestCase {
++currentMonitor;
}
- synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_CONTINUE);
assertAllDataRead(stackDepthReply);
}
@@ -158,6 +160,9 @@ public class OwnedMonitorsStackDepthInfoTest extends JDWPSyncTestCase {
+ ": START...");
synchronizer.receiveMessage(JPDADebuggeeSynchronizer.SGNL_READY);
+ // Ensure we signal the debuggee to continue at the end of the test.
+ finalSyncMessage = JPDADebuggeeSynchronizer.SGNL_CONTINUE;
+
if (!isCapability()) {
logWriter
.println("##WARNING: this VM dosn't possess capability: OwnedMonitorsStackDepthInfo");