This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Skip tests of a POSIX constant on Mac OS X because saved IDs are borked
authorDominic Dunlop <domo@computer.org>
Sun, 9 Jul 2006 22:22:14 +0000 (00:22 +0200)
committerSteve Peters <steve@fisharerojo.org>
Mon, 10 Jul 2006 03:07:59 +0000 (03:07 +0000)
Message-Id: <F1942C06-CDE3-47C6-AC5A-4358960E0F6E@mac.com>

p4raw-id: //depot/perl@28520

ext/POSIX/t/sysconf.t

index 15dd65e..1fa2eb1 100644 (file)
@@ -122,9 +122,13 @@ unlink($fifo);
 
 # testing sysconf()
 for my $constant (@sys_consts) {
-    $r = eval { sysconf( eval "$constant()" ) };
-    is( $@, '', "calling sysconf($constant)" );
-    ok( defined $r, "\tchecking that the returned value is defined: $r" );
-    ok( looks_like_number($r), "\tchecking that the returned value looks like a number" );
+ SKIP: {
+       skip "Saved IDs broken on Mac OS X (Perl #24122)", 3
+           if $^O eq 'darwin' && $constant eq '_SC_SAVED_IDS';
+       $r = eval { sysconf( eval "$constant()" ) };
+       is( $@, '', "calling sysconf($constant)" );
+       ok( defined $r, "\tchecking that the returned value is defined: $r" );
+       ok( looks_like_number($r), "\tchecking that the returned value looks like a number" );
+    }
 }