harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tony Wu" <wuyue...@gmail.com>
Subject Re: [classlib] Should tests.api.java.util.GregorianCalendarTest be excluded
Date Mon, 12 Mar 2007 06:21:59 GMT
Hi Nathan,
This testcase passes on my winxp sp2 and ubuntu with ibm vme, besides
our build system on debian. I can not reproduce it and IIRC there is
no DST in Dec and Jan. Could you pls help me to verify whether it
passes on RI and the output of code[1] and the testcase[2].  Thanks a
lot.

[1]

Date date = new Date(Date.parse("Jan 15 00:00:01 GMT 2000"));
GregorianCalendar gc = new GregorianCalendar();
gc.setGregorianChange(date);
gc.setTimeInMillis(Date.parse("Dec 24 00:00:01 GMT 2000"));
System.out.println(gc.get(Calendar.Date));

[2]

Date date = new Date(Date.parse("Jan 15 00:00:01 GMT 2000"));
GregorianCalendar gc = new GregorianCalendar();
gc.setGregorianChange(date);
gc.setTimeInMillis(Date.parse("Dec 24 12:00:01 GMT 2000"));
System.out.println(gc.get(Calendar.Date));
assertEquals(346, gc.get(Calendar.DAY_OF_YEAR));


On 3/12/07, Nathan Beyer <ndbeyer@apache.org> wrote:
> I hope not.
>
> According to my Win2K builds, this test has failed since 3/7 through
> today, so it seems to consistently fail.
>
> -Nathan
>
> On 3/11/07, Geir Magnusson Jr. <geir@pobox.com> wrote:
> > Heh - did we have some problem w/ DST?
> >
> > geir
> >
> > On Mar 11, 2007, at 3:10 PM, Nathan Beyer wrote:
> >
> > > I'm seeing a consistent failure for this unit test on WinXP and
> > > Win2000 on the IBM VM. Should this test be excluded or at least the
> > > method disabled?
> > >
> > > test_getI     Failure expected:<346> but was:<345>
> > >
> > > -Nathan
> >
> >
>


-- 
Tony Wu
China Software Development Lab, IBM

Mime
View raw message