From: Steve Peters Date: Fri, 26 Jan 2007 16:12:58 +0000 (+0000) Subject: Fix ext/POSIX/t/sysconf.t failures on Cygwin. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=abf8b121784743d34fc5407ef35129d1bbdffb2d;p=p5sagit%2Fp5-mst-13.2.git Fix ext/POSIX/t/sysconf.t failures on Cygwin. p4raw-id: //depot/perl@30014 --- diff --git a/ext/POSIX/t/sysconf.t b/ext/POSIX/t/sysconf.t index f19db68..d908d2d 100644 --- a/ext/POSIX/t/sysconf.t +++ b/ext/POSIX/t/sysconf.t @@ -36,7 +36,7 @@ my @path_consts_fifo = check qw( my @sys_consts = check qw( _SC_ARG_MAX _SC_CHILD_MAX _SC_CLK_TCK _SC_JOB_CONTROL _SC_NGROUPS_MAX _SC_OPEN_MAX _SC_PAGESIZE _SC_SAVED_IDS - _SC_STREAM_MAX _SC_TZNAME_MAX _SC_VERSION + _SC_STREAM_MAX _SC_VERSION _SC_TZNAME_MAX ); my $tests = 2 * 3 * @path_consts + @@ -151,6 +151,13 @@ END { 1 while unlink($fifo); } +SKIP: { + if($^O eq 'cygwin') { + pop @sys_consts; + skip("No _SC_TZNAME_MAX on Cygwin", 3); + } + +} # testing sysconf() for my $constant (@sys_consts) { $! = 0;