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/);
}