harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From var...@apache.org
Subject svn commit: r474672 - /incubator/harmony/enhanced/drlvm/trunk/vm/tests/kernel/java/lang/ThreadTest.java
Date Tue, 14 Nov 2006 06:09:26 GMT
Author: varlax
Date: Mon Nov 13 22:09:25 2006
New Revision: 474672

URL: http://svn.apache.org/viewvc?view=rev&rev=474672
Log:
Applied HARMONY-2166 [drlvm][kernel tests] kernel unit test ThreadTest.getStateBlocked() still
fails.
Tested on SUSE9

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=474672&r1=474671&r2=474672
==============================================================================
--- 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 Mon Nov
13 22:09:25 2006
@@ -60,7 +60,7 @@
     }
 
     private class Team {
-        private int i = 0; 
+        public int i = 0; 
         volatile boolean stopProject = false;
         
         public synchronized void work() {
@@ -1030,7 +1030,7 @@
         RunProject pr1 = new RunProject(team);
         pr1.start();
         waitTime = waitDuration;
-        while (!pr1.isAlive() && !(expired = doSleep(10))) {
+        while (team.i == 0 && !(expired = doSleep(10))) {
         }
         if (expired) {
             fail("pr1 has not been started");



Mime
View raw message