You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Ruth Cao (JIRA)" <ji...@apache.org> on 2007/03/22 04:29:32 UTC

[jira] Updated: (HARMONY-3437) [classlib][util] classlib test util.TimerTaskTest failed on havy load box

     [ https://issues.apache.org/jira/browse/HARMONY-3437?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ruth Cao updated HARMONY-3437:
------------------------------

    Attachment: Harmony-3437.diff

May somebody pls try and verify this patch?

> [classlib][util] classlib test util.TimerTaskTest failed on havy load box
> -------------------------------------------------------------------------
>
>                 Key: HARMONY-3437
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3437
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Vladimir Ivanov
>            Priority: Minor
>         Attachments: Harmony-3437.diff
>
>
> The classlib test tests.api.java.util.TimerTaskTest failed on heavy load computers with message:
> ..F..
> Time: 3.824
> There was 1 failure:
> 1) test_cancel(tests.api.java.util.TimerTaskTest)junit.framework.AssertionFailedError: TimerTask.cancel() should return false if task has run
>         at tests.api.java.util.TimerTaskTest.test_cancel(TimerTaskTest.java:120)
>         at java.lang.reflect.VMReflection.invokeMethod(VMReflection.java)
>  
> FAILURES!!!
> Tests run: 4,  Failures: 1,  Errors: 0
> This failure is happened sometimes in CC/CI system run.
> To emulate this box small class Stress was run in parallel to tests:
> ------------------ Stress.java ---------------------
> public class Stress {
>     public static void main(String[] args) {
>         Run[] threads = new Run[4];
>         for (int i = 0; i < threads.length; i++) {
>             threads[i] = new Run();
>             threads[i].start();
>         }
>         while (true){}
>     }
> }
> class Run extends Thread {
>     public void run() {
>         long i = 0;
>         try {
>             while (true) {
>                 i++;
>             }
>         } catch (Exception e) {
>             System.out.println("Exception:" + e);
>         }
>     }
> }
> --------------------------------------------------------
> Note, seems it is a copy of bug 3036, but I can't reopen it so create new one.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.