Skip Menu |

This queue is for tickets about the Time-Piece CPAN distribution.

Report information
The Basics
Id: 78076
Status: resolved
Priority: 0/
Queue: Time-Piece

People
Owner: Nobody in particular
Requestors: dmcbride [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 1.20
Fixed in: (no value)



When trying to install perl 5.16.0 on AIX7, I get: $ ./perl harness -v ../cpan/Time-Piece/t/02core.t # Failed test at t/02core.t line 62. # got: '' # expected: 'EST' # Looks like you failed 1 test of 95. ../cpan/Time-Piece/t/02core.t .. This looks like an AIX bug: $ TZ=EST5 date +%Z outputs nothing as well. I'm looking for a way to report this to AIX, but, in the meantime, the following may suffice. --- 02core.t 2012-06-27 14:02:54.000000000 -0400 +++ /tmp/02core.t 2012-06-27 18:07:48.000000000 -0400 @@ -55,11 +55,11 @@ } SKIP: { skip "can't register TZ changes in a pseudo-fork", 2 if $is_pseudo_fork; - local $ENV{TZ} = "EST5"; + local $ENV{TZ} = "EST5EDT"; Time::Piece::_tzset(); # register the environment change my $lt = localtime; - cmp_ok(scalar($lt->tzoffset), 'eq', '-18000'); - cmp_ok($lt->strftime("%Z"), 'eq', 'EST'); + like(scalar($lt->tzoffset), qr/-(?:144|180)00/); + like($lt->strftime("%Z"), qr/E[DS]T/); }
Looks like this is probably just a problem with AIX 7 GA. Found another machine with a later version of AIX 7 which doesn't exhibit the problem when using the date command, so I assume this will go away there, too. Sorry about that.