summaryrefslogtreecommitdiff
path: root/lib/Time
diff options
context:
space:
mode:
authorH.Merijn Brand <h.m.brand@xs4all.nl>2004-04-07 12:03:11 +0000
committerH.Merijn Brand <h.m.brand@xs4all.nl>2004-04-07 12:03:11 +0000
commitee80afe69a0e0464a9d27967d995a4791cf8367b (patch)
tree73fab4bb59ff4f51fac7db8e708c8677e7a195c9 /lib/Time
parent498d59dd5e74232ff73ab47a68daf476accc8df1 (diff)
downloadperl-ee80afe69a0e0464a9d27967d995a4791cf8367b.tar.gz
Disable the edge case tests for timegm and timelocal on
AIX-4.3 since the OS is obsoleted, and fixes are not to be expected p4raw-id: //depot/perl@22670
Diffstat (limited to 'lib/Time')
-rwxr-xr-xlib/Time/Local.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/Time/Local.t b/lib/Time/Local.t
index c4b7827e66..8f35f7aa60 100755
--- a/lib/Time/Local.t
+++ b/lib/Time/Local.t
@@ -9,6 +9,7 @@ BEGIN {
use strict;
+use Config;
use Test;
use Time::Local;
@@ -98,11 +99,15 @@ ok(timegm(0,0,0, 1, 2, 80) - timegm(0,0,0, 1, 0, 80), 60 * 24 * 3600,
}
# round trip was broken for edge cases
+if ($^O eq "aix" && $Config{osvers} =~ m/^4\.3\./) {
+skip ("No fix expected for edge case test for $_ on AIX 4.3") for qw( timegm timelocal );
+} else {
ok(sprintf('%x', timegm(gmtime(0x7fffffff))), sprintf('%x', 0x7fffffff),
'0x7fffffff round trip through gmtime then timegm');
ok(sprintf('%x', timelocal(localtime(0x7fffffff))), sprintf('%x', 0x7fffffff),
'0x7fffffff round trip through localtime then timelocal');
+}
if ($ENV{MAINTAINER}) {
eval { require POSIX; POSIX::tzset() };