Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 59319 invoked from network); 19 Jun 2007 13:01:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 19 Jun 2007 13:01:47 -0000 Received: (qmail 90052 invoked by uid 500); 19 Jun 2007 13:01:51 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 90034 invoked by uid 500); 19 Jun 2007 13:01:50 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 90025 invoked by uid 99); 19 Jun 2007 13:01:50 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 06:01:50 -0700 X-ASF-Spam-Status: No, hits=-99.5 required=10.0 tests=ALL_TRUSTED,NO_REAL_NAME X-Spam-Check-By: apache.org Received: from [140.211.11.3] (HELO eris.apache.org) (140.211.11.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Jun 2007 06:01:40 -0700 Received: by eris.apache.org (Postfix, from userid 65534) id EB5081A981A; Tue, 19 Jun 2007 06:01:19 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: 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 Date: Tue, 19 Jun 2007 13:01:19 -0000 To: commits@harmony.apache.org From: gshimansky@apache.org X-Mailer: svnmailer-1.1.0 Message-Id: <20070619130119.EB5081A981A@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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());