develooper Front page | perl.perl5.porters | Postings from November 2013

[perl #120615] Skip test when cross-compiling

From:
James E Keenan via RT
Date:
November 23, 2013 00:52
Subject:
[perl #120615] Skip test when cross-compiling
Message ID:
rt-4.0.18-19816-1385167932-594.120615-15-0@perl.org
On Fri Nov 22 07:46:04 2013, fperrad wrote:
> This is a bug report for perl from francois.perrad@gadz.org,
> generated with the help of perlbug 1.39 running under perl 5.18.1.
> 
> 
> -----------------------------------------------------------------
> [Please describe your issue here]
> 
> 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)
> 
> [PATCH] skip dist/ExtUtils-Install/t/InstallWithMM.t when cross-
> compiling
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> 
> diff --git a/dist/ExtUtils-Install/t/InstallWithMM.t
> b/dist/ExtUtils-Install/t/InstallWithMM.t
> index 4b2c439..0d58d3c 100644
> --- a/dist/ExtUtils-Install/t/InstallWithMM.t
> +++ b/dist/ExtUtils-Install/t/InstallWithMM.t
> @@ -10,9 +10,13 @@
>  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;
> 

Applied in commit 311e7a86faead444a320777010bb5b5464fe5f32.  Keep those patches coming, François!



---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=120615



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About