From ddf1bca2184715ca1d74eab73a1c6a1d60e5947a Mon Sep 17 00:00:00 2001 From: Sevan Janiyan Date: Thu, 27 Apr 2023 01:33:23 +0100 Subject: [PATCH] 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 --- t/04-xs-rpath-darwin.t | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/t/04-xs-rpath-darwin.t b/t/04-xs-rpath-darwin.t index 184888387..a1a2510b9 100644 --- a/t/04-xs-rpath-darwin.t +++ b/t/04-xs-rpath-darwin.t @@ -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 OS X Leopard and newer' + } else { plan skip_all => 'Dynaloading not enabled' if !$Config{usedl} or $Config{usedl} ne 'define';