Closed p5pRT closed 10 years ago
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
--- 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;
--
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
The RT System itself - Status changed from 'new' to 'open'
@cpansprout - Status changed from 'open' to 'resolved'
Migrated from rt.perl.org#120398 (status was 'resolved')
Searchable as RT120398$