harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ge...@apache.org
Subject svn commit: r467510 - /incubator/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadTest.java
Date Tue, 24 Oct 2006 22:18:17 GMT
Author: geirm
Date: Tue Oct 24 15:18:16 2006
New Revision: 467510

URL: http://svn.apache.org/viewvc?view=rev&rev=467510
Log:
HARMONY-1876

Fix to DRLVM kernel ThreadTest


Modified:
    incubator/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadTest.java

Modified: incubator/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadTest.java
URL: http://svn.apache.org/viewvc/incubator/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadTest.java?view=diff&rev=467510&r1=467509&r2=467510
==============================================================================
--- incubator/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadTest.java (original)
+++ incubator/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadTest.java Tue Oct
24 15:18:16 2006
@@ -1029,8 +1029,20 @@
         Team team = new Team();
         RunProject pr1 = new RunProject(team);
         pr1.start();
+        waitTime = waitDuration;
+        while (!pr1.isAlive() && !(expired = doSleep(10))) {
+        }
+        if (expired) {
+            fail("pr1 has not been started");
+        }
         RunProject pr2 = new RunProject(team);
         pr2.start();
+        waitTime = waitDuration;
+        while (!pr2.isAlive() && !(expired = doSleep(10))) {
+        }
+        if (expired) {
+            fail("pr2 has not been started");
+        }
         Thread.State state;
         waitTime = waitDuration;
         do {



Mime
View raw message