This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Skip dist/ExtUtils-Install/t/InstallWithMM.t when cross-compiling.
authorFran├žois Perrad <francois.perrad@gadz.org>
Sat, 23 Nov 2013 00:49:11 +0000 (01:49 +0100)
committerJames E Keenan <jkeenan@cpan.org>
Sat, 23 Nov 2013 00:49:11 +0000 (01:49 +0100)
The toolchain is not installed on the target when cross-compiling.
So, this test must be skipped, see patch below.
(same problem as RT#119769 and RT#120398)

For: RT #120615

dist/ExtUtils-Install/t/InstallWithMM.t

index 4b2c439..0d58d3c 100644 (file)
@@ -10,9 +10,13 @@ use strict;
 use Config;
 use ExtUtils::MakeMaker;
 
-use Test::More tests => 15;
 use MakeMaker::Test::Utils;
 use MakeMaker::Test::Setup::BFD;
+use IPC::Cmd qw(can_run);
+use Test::More
+    can_run(make())
+    ? (tests => 15)
+    : (skip_all => "make not available");
 use File::Find;
 use File::Spec;
 use File::Path;