harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3437) [classlib][util] classlib test util.TimerTaskTest failed on havy load box
Date Tue, 20 Mar 2007 08:21:32 GMT
[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


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