old-time.git/tests/time004.hs is DST-sensitive :-/

Herbert Valerio Riedel hvr at gnu.org
Sun Oct 26 10:45:32 UTC 2014


Hello *,

It's that time of the year again when time004 fails...

and there's also an associated ticket:

  https://ghc.haskell.org/trac/ghc/ticket/4440

On 2013-10-27 at 11:03:41 +0100, Herbert Valerio Riedel wrote:
> if anyone wonders, why TEST=time004 suddenly fails: it's sensitive to
> DST (and depends on your system's TZ-config):
>
>   http://git.haskell.org/packages/old-time.git/blob/HEAD:/tests/time004.hs
>
> For me, the comparison this unit-test checks now suddenly fails, because
> the DST-switch occurs on different days in 2012 and 2013 in my TZ, i.e.
>
>   length "Sun Oct 27 10:56:42 CET 2013" /= length "Sat Oct 27 11:56:42 CEST 2012"
>
> Does anyone happen to know what the rationale behind this 'time004' unit
> test was?
>
> Cheers,
>   hvr


More information about the ghc-devs mailing list