Skip to content

Commit ddf1bca

Browse files
sevanbingos
authored andcommitted
t/04-xs-rpath-darwin.t: Need Darwin 9 minimum
-rpath is not support on toolchain of older Darwin versions. Fix for test part of issue #410
1 parent b324e60 commit ddf1bca

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

t/04-xs-rpath-darwin.t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,13 @@ BEGIN {
1414
chdir 't' or die "chdir(t): $!\n";
1515
unshift @INC, 'lib/';
1616
use Test::More;
17+
my ($osmajmin) = $Config{osvers} =~ /^(\d+\.\d+)/;
1718
if( $^O ne "darwin" ) {
1819
plan skip_all => 'Not darwin platform';
1920
}
21+
elsif ($^O eq 'darwin' && $osmajmin < 9) {
22+
plan skip_all => 'For OS X Leopard and newer'
23+
}
2024
else {
2125
plan skip_all => 'Dynaloading not enabled'
2226
if !$Config{usedl} or $Config{usedl} ne 'define';

0 commit comments

Comments
 (0)