harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Varlamov (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HARMONY-1974) [classlib][lini] unit test ThreadTest.test_enumerate$Ljava_lang_Thread() fails intermittently on drlvm
Date Tue, 14 Nov 2006 13:04:40 GMT
    [ http://issues.apache.org/jira/browse/HARMONY-1974?page=comments#action_12449660 ] 
            
Alexey Varlamov commented on HARMONY-1974:
------------------------------------------

Elena,

IMHO the check you suggest:
 			firstOne.start();
+            while (!firstOne.isAlive() && waitTime > 0) {

is a bogus: accordingly to API specification, after method start() returns the target thread
is already running. I.e. not necessarily it's run() is already being executed, but it is "alive"
by definition. If this is not so for DRLVM, it must be a bug of DRLVM.

> [classlib][lini] unit test ThreadTest.test_enumerate$Ljava_lang_Thread() fails intermittently
on drlvm
> ------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1974
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1974
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Elena Semukhina
>         Assigned To: Alexey Varlamov
>         Attachments: ThreadTest.patch
>
>
> The test fails rather often when running the whole luni module with the following message:
> Incorrect value returned2 
> junit.framework.AssertionFailedError: Incorrect value returned2 at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
at org.apache.harmony.luni.tests.java.lang.ThreadTest.test_enumerate$Ljava_lang_Thread(ThreadTest.java:357)
at java.lang.reflect.VMReflection.invokeMethod(Native Method) 0.000 
> test_getContextClassLoader Success 
> or
> Incorrect value returned3 
> junit.framework.AssertionFailedError: Incorrect value returned3 at junit.framework.AssertionFailedError.<init>(AssertionFailedError.java:11)
at org.apache.harmony.luni.tests.java.lang.ThreadTest.test_enumerate$Ljava_lang_Thread(ThreadTest.java:357)
at java.lang.reflect.VMReflection.invokeMethod(Native Method) 0.000 
> test_getContextClassLoader Success 
> It seems that the test should wait until threads are started and then call the enumerate()
method.
>  

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message