ext/DynaLoader/t/DynaLoader.t: Skip the dl_findfile test when cross-compiling
authorBrian Fraser <fraserbn@gmail.com>
Thu, 10 Oct 2013 23:59:56 +0000 (20:59 -0300)
committerBrian Fraser <fraserbn@gmail.com>
Wed, 22 Jan 2014 19:33:07 +0000 (16:33 -0300)
ext/DynaLoader/DynaLoader_pm.PL
ext/DynaLoader/t/DynaLoader.t

index 5c71aaf..584f9cb 100644 (file)
@@ -85,7 +85,7 @@ package DynaLoader;
 # Tim.Bunce@ig.co.uk, August 1994
 
 BEGIN {
-    $VERSION = '1.24';
+    $VERSION = '1.24_1';
 }
 
 use Config;
index a95287a..ade1f8e 100644 (file)
@@ -117,6 +117,8 @@ SKIP: {
     # looks pretty much Unix-like.
     skip "dl_findfile test not appropriate on $^O", 1
        unless -d '/usr' && -f '/bin/ls';
+    skip "dl_findfile test not always appropriate when cross-compiling", 1
+        if $Config{usecrosscompile};
     cmp_ok( scalar @files, '>=', 1, "array should contain one result result or more: libc => (@files)" );
 }