Change 29352 by [EMAIL PROTECTED] on 2006/11/22 16:49:10

        VC8 regards 60 seconds as an invalid parameter for strftime()
        so skip the test in that case.

Affected files ...

... //depot/perl/ext/POSIX/t/posix.t#24 edit

Differences ...

==== //depot/perl/ext/POSIX/t/posix.t#24 (text) ====
Index: perl/ext/POSIX/t/posix.t
--- perl/ext/POSIX/t/posix.t#23~29056~  2006-10-19 13:47:53.000000000 -0700
+++ perl/ext/POSIX/t/posix.t    2006-11-22 08:49:10.000000000 -0800
@@ -186,7 +186,12 @@
 
 $lc = &POSIX::setlocale(&POSIX::LC_TIME, 'C') if $Config{d_setlocale};
 try_strftime("Wed Feb 28 00:00:00 1996 059", 0,0,0, 28,1,96);
-try_strftime("Thu Feb 29 00:00:60 1996 060", 60,0,-24, 30,1,96);
+SKIP: {
+    skip("VC++ 8 regards 60 seconds as an invalid parameter", 1)
+       if $Config{cc} eq 'cl' and $Config{ccversion} =~ /^(\d+)/ and $1 >= 14;
+
+    try_strftime("Thu Feb 29 00:00:60 1996 060", 60,0,-24, 30,1,96);
+}
 try_strftime("Fri Mar 01 00:00:00 1996 061", 0,0,-24, 31,1,96);
 try_strftime("Sun Feb 28 00:00:00 1999 059", 0,0,0, 28,1,99);
 try_strftime("Mon Mar 01 00:00:00 1999 060", 0,0,24, 28,1,99);
End of Patch.

Reply via email to