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

[perl #120398] skip t/porting/extrefs.t when cross-compiling

Thread Next
From:
Father Chrysostomos via RT
Date:
October 28, 2013 21:36
Subject:
[perl #120398] skip t/porting/extrefs.t when cross-compiling
Message ID:
rt-4.0.18-24525-1382996183-1877.120398-15-0@perl.org
On Mon Oct 28 11:18:15 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)
> 
> [PATCH] skip t/porting/extrefs.t when cross-compiling
> 
> Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
> 
> Index: b/t/porting/extrefs.t
> ===================================================================
> --- a/t/porting/extrefs.t
> +++ b/t/porting/extrefs.t
> @@ -23,8 +23,13 @@
>  use Config;
>  use File::Path 'rmtree';
>  use Cwd;
> +use IPC::Cmd qw(can_run);
> 
> -plan(tests => 1);
> +if ($Config{'usecrosscompile'} && !can_run($Config{'cc'})) {
> +    skip_all("compiler not available (cross-compiling)");
> +} else {
> +    plan(tests => 1);
> +}
> 
> my $VERBOSE = grep {$_ eq '-v'} @ARGV;

Thank you.  Applied as 38321b6.
-- 

Father Chrysostomos


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

Thread Next


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