Subject: | skip some tests when cross-compiling |
the toolchain is not installed on the target when cross-compiling.
there are no sense to install this module on target, but EUI is a part of Perl distribution.
so that fixes the Perl test suite when cross-compiling.
(same thing in EUMM, see https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/commit/8a68af92226faa44a548c926bd509ac7c39ee8be)
Subject: | perl-cross-EUI.patch |
diff --git a/t/InstallWithMM.t b/t/InstallWithMM.t
index 354b8f4..1664ccd 100644
--- a/t/InstallWithMM.t
+++ b/t/InstallWithMM.t
@@ -16,7 +16,10 @@ use strict;
use Config;
use ExtUtils::MakeMaker;
-use Test::More tests => 15;
+use Test::More
+ $ENV{PERL_CORE} && $Config{'usecrosscompile'}
+ ? (skip_all => "no toolchain installed when cross-compiling")
+ : (tests => 15);
use MakeMaker::Test::Utils;
use MakeMaker::Test::Setup::BFD;
use File::Find;