summaryrefslogtreecommitdiff
path: root/t/porting
diff options
context:
space:
mode:
authorFrançois Perrad <francois.perrad@gadz.org>2013-10-28 12:29:29 -0700
committerFather Chrysostomos <sprout@cpan.org>2013-10-28 14:35:29 -0700
commit38321b6f27e7e11ad92c1af843f39cf05c938082 (patch)
tree710f78f7d711a43b98fe1c09297f82d10e2dc0cf /t/porting
parent49daec89346092b0a400e41b459c035db29bce40 (diff)
downloadperl-38321b6f27e7e11ad92c1af843f39cf05c938082.tar.gz
[perl #120398] skip t/porting/extrefs.t when cross-compiling
The toolchain is not installed on the target when cross-compiling. So, this test must be skipped. (same problem as RT#119769) Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Diffstat (limited to 't/porting')
-rw-r--r--t/porting/extrefs.t7
1 files changed, 6 insertions, 1 deletions
diff --git a/t/porting/extrefs.t b/t/porting/extrefs.t
index 9d4a1d3d14..2e911e7a0b 100644
--- a/t/porting/extrefs.t
+++ b/t/porting/extrefs.t
@@ -23,8 +23,13 @@ use warnings;
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;