harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey A. Ivanov (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2282) [classlib][drlvm][swing] intermittent failures of swing module tests
Date Mon, 27 Nov 2006 12:13:22 GMT
     [ http://issues.apache.org/jira/browse/HARMONY-2282?page=all ]

Alexey A. Ivanov updated HARMONY-2282:
--------------------------------------

    Attachment: H2282-SpinnerDateModelTest.patch

The patch to SpinnerDateModelTest fixes the failure of the first test mentioned.
To reproduce the problem, you can add the following lines:
        calendar.set(2006, 10, 26);
        model.setValue(calendar.getTime());

right after
        Calendar calendar = new GregorianCalendar();

in setUp().

This will make now.getDay() return 6, whereas the next day of week has index of 0 (i.e. model.getDate.getDay()
return 0 as expected).

Also I've added @Override annotations and calls to super into setUp() and tearDown().

> [classlib][drlvm][swing] intermittent failures of swing module tests
> --------------------------------------------------------------------
>
>                 Key: HARMONY-2282
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2282
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Win XP, msvc, debug
>            Reporter: tatyana doubtsova
>         Attachments: H2282-SpinnerDateModelTest.patch
>
>
> While running swing module tests in perTest mode iteratively 50 times on Win XP, I observed
the following intermittent failures:
> 1). javax.swing.SpinnerDateModelTest@testSpinnerDateModel failed 35 times out of 50 on
svn=r476124:
>     expected:<0> but was:<7>
> junit.framework.AssertionFailedError: expected:<0> but was:<7> at javax.swing.SpinnerDateModelTest.testSpinnerDateModel(SpinnerDateModelTest.java:59)
at java.lang.reflect.VMReflection.invokeMethod(Native Method) at javax.swing.BasicSwingTestCase.runBareSuper(BasicSwingTestCase.java)
at javax.swing.BasicSwingTestCase.runBareImpl(BasicSwingTestCase.java) at javax.swing.BasicSwingTestCase$1.run(BasicSwingTestCase.java)
at java.lang.Thread.run(Unknown Source)
> 2). javax.swing.text.WrappedPlainView_SimpleTest 1 time of 50 on svn=r476124:
> junit.framework.AssertionFailedError: Timeout occurred
> 3). javax.swing.Timer_MultithreadedTest@testIsRunning failed 1 time of 50 on svn=r476124:
> timer is running 
> junit.framework.AssertionFailedError: timer is running at javax.swing.Timer_MultithreadedTest.testIsRunning(Timer_MultithreadedTest.java:317)
at java.lang.reflect.VMReflection.invokeMethod(Native Method)
> I'll proceed with iterative test runs and update the list, if there are new failures.

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