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 EUC 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-EUC.patch |
diff --git a/t/Constant.t b/t/Constant.t
index 5cc6f49..a47b6e1 100644
--- a/t/Constant.t
+++ b/t/Constant.t
@@ -2,7 +2,11 @@
use Config;
unless ($Config{usedl}) {
- print "1..0 # no usedl, skipping\n";
+ print "1..0 # SKIP no usedl\n";
+ exit 0;
+}
+if ($Config{'usecrosscompile'}) {
+ print "1..0 # SKIP no toolchain installed when cross-compiling\n";
exit 0;
}