Subject: | Log::Log4perl module test for time / timezone check in latest version 1.45 |
Date: | Fri, 31 Oct 2014 13:26:12 +0000 |
To: | bug-Log-Log4perl [...] rt.cpan.org |
From: | Graham Colgate <grahamcolgate [...] gmail.com> |
Hi
It looks like its failing because you are presuming that no-one will have a local time of GMT?
In the UK for the whole of winter we are in GM Time
See error details here:
Get this error
Failed test 'gmtime != localtime'
full error
t/070UTCDate.t ............ 1/2
# Failed test 'gmtime != localtime'
# at t/070UTCDate.t line 63.
# got: '11:51:22
# '
# expected: anything else
# Looks like you failed 1 test of 2.
t/070UTCDate.t ............ Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/2 subtests
Test Summary Report
-------------------
t/070UTCDate.t (Wstat: 256 Tests: 2 Failed: 1)
Failed test: 2
Non-zero exit status: 1
Files=73, Tests=718, 31 wallclock secs ( 0.45 usr 0.30 sys + 4.24 cusr 1.71 csys = 6.70 CPU)
Result: FAIL
Failed 1/73 test programs. 1/718 subtests failed.
make: *** [test_dynamic] Error 1
MSCHILLI/Log-Log4perl-1.45.tar.gz
make test -- NOT OK
//hint// to see the cpan-testers results for installing this module, try:
reports MSCHILLI/Log-Log4perl-1.45.tar.gz
Running make install
make test had returned bad status, won't install without force
Failed during this command:
MSCHILLI/Log-Log4perl-1.45.tar.gz : make_test NO
cpan[2]>
I wrote a little script to test if the time was different and it isn’t:
#!/usr/bin/perl
use feature 'say';
my $lTime = localtime;
my $gTime = gmtime;
say "gtime: $gTime";
say "ltime: $lTime";
Here is the output
gtime: Fri Oct 31 11:55:31 2014
ltime: Fri Oct 31 11:55:31 2014
Thanks
Graham