[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: 2 minor test fails on FreeBSD-10 with 8.22.157-1b243
From: |
Assaf Gordon |
Subject: |
Re: 2 minor test fails on FreeBSD-10 with 8.22.157-1b243 |
Date: |
Fri, 18 Jul 2014 18:06:34 -0400 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 |
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