On 07/18/2014 05:43 PM, Pádraig Brady wrote:
On 07/18/2014 10:19 PM, Assaf Gordon wrote:

I'm seing that on FreeBSD 9.1 too.
I reported that when testing the previous release,
https://lists.gnu.org/archive/html/coreutils/2013-12/msg00096.html

Seems like 'utmp' was removed from FreeBSD-9 and later (replaced with 'utmpx'):
  http://lists.freebsd.org/pipermail/freebsd-current/2010-January/014893.html


FAIL: tests/misc/date
=====================

localtime(72057594037927936) too large at ./tests/misc/date.pl line 54.
localtime(72057594037927936) failed at ./tests/misc/date.pl line 54.
date.pl: test uninit-64 failed: exit status mismatch:  expected 1, got 0

I didn't see that error here.
Perhaps there is a mismatch between the perl limits
and the GNU date limits on that system?


This one-liner fails on said system:
    $ perl -w -e '@d=localtime(72057594037927935);'
    Name "main::d" used only once: possible typo at -e line 1.
    localtime(72057594037927936) too large at -e line 1.
    localtime(72057594037927936) failed at -e line 1.

While it works on many other kernels (e.g. linux 64bit) even with older Perl 
versions.

Based on the comment in './tests/misc/date.pl' line 44 it looks like the value 
was chosen somewhat arbitrarily
to be very large but smaller than 2^64 (so it was chosen as 2^56).
Perhaps change it to 2^55 ?

From the same system:
    $ perl -w -e '@d=localtime(2**54);'
    Name "main::d" used only once: possible typo at -e line 1.
    $ perl -w -e '@d=localtime(2**55);'
    Name "main::d" used only once: possible typo at -e line 1.
    $ perl -w -e '@d=localtime(2**56);'
    Name "main::d" used only once: possible typo at -e line 1.
    localtime(72057594037927936) too large at -e line 1.
    localtime(72057594037927936) failed at -e line 1.

Thanks,
 - Assaf


Reply via email to