bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: test results on MacOS X 10.5


From: Jim Meyering
Subject: Re: test results on MacOS X 10.5
Date: Sat, 10 Apr 2010 12:02:44 +0200

Bruno Haible wrote:
> Just one test fails:
>
> 000001010000.00 mismatch (-: actual; +:expected)
> --62167132800
> +-62167219200
> FAIL: test-posixtm
>
> Jim, what does this mean?

Hi Bruno,

I suspect that is due to a bug in their mktime function.
I presume that test is using the system version of mktime,
and not the gnulib replacement.

000001010000.00 is supposed to map to Sat Jan  1 00:00:00 0,
aka 62167219200 (aka the first second of the year "0"), but they missed
by 86400 seconds (24 hours) and got Sun Jan  2 00:00:00 0.

Does that test pass when using our replacement?
If so, this is a good argument for improving mktime's configure-time
test to detect this flaw.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]