harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tim Ellison" <t.p.elli...@gmail.com>
Subject Re: [testing] locale dependent tests
Date Wed, 26 Jul 2006 09:05:09 GMT
On 26/07/06, Richard Liang <richard.liangyx@gmail.com> wrote:
> Tim Ellison wrote:
> > On 25/07/06, Richard Liang <richard.liangyx@gmail.com> wrote:
> > <snip>
> >> Not sure what the "fake" hard-coded locale is. I used to set the default
> >> locale to some particular one, e.g., en_US, but it seems that someone
> >> (Tim) does not like the idea. :-)
> >
> > What I objected to was setting the locale to a specific value that
> > made the tests pass even where the logic is locale-specific.  So, for
> > example, if an application using the ru_RU locale would experience the
> > problem that Alexey is seeing with the DecimalFormat, then the tests
> > should use the default locale, and we (Harmony) get the benefit of a
> > wide community of hetrogeneous testers.
> >
> > i.e. don't make all tests run on a uniform machine set-up -- let them
> > be realistic.
> Agree :-) Maybe we will two kinds of locale-related tests:
> 1) tests which should pass on any locale
> 2) tests which are intended to be executed in one particular locale, for
> these tests, we can restrict the default locale to a specific one.

Exactly.  A comment in the source that slams the locale should be
sufficient to show people that it is a type (2) test.

Regards,
Tim

> Any comments? Thanks a lot.
>
> Best regards,
> Richard
>
> >
> > Regards,
> > Tim
> >
>
> --
> Richard Liang
> China Software Development Lab, IBM
>
>
>
> ---------------------------------------------------------------------
> Terms of use : http://incubator.apache.org/harmony/mailing.html
> To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
> For additional commands, e-mail: harmony-dev-help@incubator.apache.org
>
>


-- 

Tim Ellison (t.p.ellison@gmail.com)
IBM Java technology centre, UK.

---------------------------------------------------------------------
Terms of use : http://incubator.apache.org/harmony/mailing.html
To unsubscribe, e-mail: harmony-dev-unsubscribe@incubator.apache.org
For additional commands, e-mail: harmony-dev-help@incubator.apache.org


Mime
View raw message