You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by gs...@apache.org on 2007/06/19 15:01:19 UTC
svn commit: r548714 - in /harmony/enhanced/jdktools/trunk/modules/jpda:
make/exclude.windows.x86.drl
test/common/unit/org/apache/harmony/jpda/tests/jdwp/ThreadReference/InterruptDebuggee.java
Author: gshimansky
Date: Tue Jun 19 06:01:18 2007
New Revision: 548714
URL: http://svn.apache.org/viewvc?view=rev&rev=548714
Log:
Applied test improvement from HARMONY-4046
[jdktools][jpda] JDWP test fails on Windows: org.apache.harmony.jpda.tests.jdwp.ThreadReference.InterruptTest
Modified:
harmony/enhanced/jdktools/trunk/modules/jpda/make/exclude.windows.x86.drl
harmony/enhanced/jdktools/trunk/modules/jpda/test/common/unit/org/apache/harmony/jpda/tests/jdwp/ThreadReference/InterruptDebuggee.java
Modified: harmony/enhanced/jdktools/trunk/modules/jpda/make/exclude.windows.x86.drl
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/make/exclude.windows.x86.drl?view=diff&rev=548714&r1=548713&r2=548714
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/jpda/make/exclude.windows.x86.drl (original)
+++ harmony/enhanced/jdktools/trunk/modules/jpda/make/exclude.windows.x86.drl Tue Jun 19 06:01:18 2007
@@ -1,4 +1,2 @@
#3377 (Windows only)
org/apache/harmony/jpda/tests/jdwp/MultiSession/ListenConnectorTest.java
-#4046 (WindowsXP/x86 on a slow single-cpu machine)
-org/apache/harmony/jpda/tests/jdwp/ThreadReference/InterruptTest.java
Modified: harmony/enhanced/jdktools/trunk/modules/jpda/test/common/unit/org/apache/harmony/jpda/tests/jdwp/ThreadReference/InterruptDebuggee.java
URL: http://svn.apache.org/viewvc/harmony/enhanced/jdktools/trunk/modules/jpda/test/common/unit/org/apache/harmony/jpda/tests/jdwp/ThreadReference/InterruptDebuggee.java?view=diff&rev=548714&r1=548713&r2=548714
==============================================================================
--- harmony/enhanced/jdktools/trunk/modules/jpda/test/common/unit/org/apache/harmony/jpda/tests/jdwp/ThreadReference/InterruptDebuggee.java (original)
+++ harmony/enhanced/jdktools/trunk/modules/jpda/test/common/unit/org/apache/harmony/jpda/tests/jdwp/ThreadReference/InterruptDebuggee.java Tue Jun 19 06:01:18 2007
@@ -43,6 +43,7 @@
public static final String TESTED_THREAD = "TestedThread";
static Object waitForStart = new Object();
+ static Object waitForInterrupt = new Object();
static Object waitForFinish = new Object();
public void run() {
@@ -82,12 +83,15 @@
synchronized(InterruptDebuggee.waitForStart){
InterruptDebuggee.waitForStart.notifyAll();
+ }
+ synchronized(InterruptDebuggee.waitForInterrupt){
+
logWriter.println(getName() + ": started");
synchronizer.sendMessage(JPDADebuggeeSynchronizer.SGNL_READY);
try {
- InterruptDebuggee.waitForStart.wait();
+ InterruptDebuggee.waitForInterrupt.wait();
} catch (InterruptedException e) {
logWriter.println("Expected " + e);
synchronizer.sendMessage(e.toString());