This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Skip SA_SIGINFO uid/pid test on POSIX-deficient OS X versions
authorDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 29 Jan 2016 10:39:31 +0000 (10:39 +0000)
committerDagfinn Ilmari Mannsåker <ilmari@ilmari.org>
Fri, 29 Jan 2016 10:40:45 +0000 (10:40 +0000)
ext/POSIX/t/sigaction.t

index b282185..f208da3 100644 (file)
@@ -199,6 +199,8 @@ SKIP: {
     my %opt_val = ( code => 'SI_USER' );
     my %always = map +($_ => 1), qw(signo code);
     my %skip = ( code => { darwin => "not set to SI_USER for kill()" } );
+    $skip{pid}{$^O} = $skip{uid}{$^O} = "not set for kill()"
+        if ($^O.$Config{osvers}) =~ /^darwin[0-8]\./;
     my $tests = keys %{{ %siginfo, %opt_val }};
     eval 'use POSIX qw(SA_SIGINFO); SA_SIGINFO';
     skip("no SA_SIGINFO", $tests) if $@;