Mac OS X/Darwin seems to have problems with tzname().
Steve Peters [Mon, 28 Nov 2005 14:11:23 +0000 (14:11 +0000)]
p4raw-id: //depot/perl@26221

ext/POSIX/t/time.t

index 8f372e5..1d4e5f6 100644 (file)
@@ -22,7 +22,10 @@ SKIP: {
     tzset();
     my @tzname = tzname();
     like($tzname[0], qr/[GMT|UTC]/i, "tzset() to GMT/UTC");
-    like($tzname[1], qr/[GMT|UTC]/i, "The whole year?");
+    SKIP: {
+        skip "Mac OS X/Darwin doesn't handle this", 1 if $^O =~ /darwin/i;
+        like($tzname[1], qr/[GMT|UTC]/i, "The whole year?");
+    }
 }
 
 # asctime and ctime...Let's stay below INT_MAX for 32-bits and