summaryrefslogtreecommitdiff
path: root/ext/POSIX
diff options
context:
space:
mode:
authorSteve Peters <steve@fisharerojo.org>2007-01-26 16:12:58 +0000
committerSteve Peters <steve@fisharerojo.org>2007-01-26 16:12:58 +0000
commitabf8b121784743d34fc5407ef35129d1bbdffb2d (patch)
treec6ab4201fc82bca0fed0933d12b5d3b4d45fe764 /ext/POSIX
parent236a07384c9350a4f32ab88626ab91b5ab551f1e (diff)
downloadperl-abf8b121784743d34fc5407ef35129d1bbdffb2d.tar.gz
Fix ext/POSIX/t/sysconf.t failures on Cygwin.
p4raw-id: //depot/perl@30014
Diffstat (limited to 'ext/POSIX')
-rw-r--r--ext/POSIX/t/sysconf.t9
1 files changed, 8 insertions, 1 deletions
diff --git a/ext/POSIX/t/sysconf.t b/ext/POSIX/t/sysconf.t
index f19db68461..d908d2da7e 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;