harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexei Zakharov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-3437) [classlib][util] classlib test util.TimerTaskTest failed on havy load box
Date Thu, 29 Mar 2007 13:54:29 GMT

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

Alexei Zakharov updated HARMONY-3437:
-------------------------------------

    Patch Info: [Patch Available]

> [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.


Mime
View raw message