Skip to content

Commit

Permalink
t/04-xs-rpath-darwin.t: Need Darwin 9 minimum
Browse files Browse the repository at this point in the history
-rpath is not support on toolchain of older Darwin versions.
Fix for test part of issue Perl-Toolchain-Gang#410
  • Loading branch information
sevan committed Apr 27, 2023
1 parent 694b7c7 commit d5488fc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions t/04-xs-rpath-darwin.t
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ BEGIN {
chdir 't' or die "chdir(t): $!\n";
unshift @INC, 'lib/';
use Test::More;
my ($osmajmin) = $Config{osvers} =~ /^(\d+\.\d+)/;
if( $^O ne "darwin" ) {
plan skip_all => 'Not darwin platform';
}
elsif ($^O eq 'darwin' && $osmajmin < 9) {
plan skip_all => 'For cctools of OS X Leopard and newer'
}
else {
plan skip_all => 'Dynaloading not enabled'
if !$Config{usedl} or $Config{usedl} ne 'define';
Expand Down

0 comments on commit d5488fc

Please sign in to comment.