diff options
author | Ricardo Signes <rjbs@cpan.org> | 2012-05-10 16:56:40 -0400 |
---|---|---|
committer | Ricardo Signes <rjbs@cpan.org> | 2012-05-10 16:56:40 -0400 |
commit | 58df49fa9407d97e632c9f1c46d062b432723965 (patch) | |
tree | f43641bbc248370a237dc22d9e4ff30d6293c12a | |
parent | 797ced9432a4f576879a5f08356fc5dc21113d21 (diff) | |
download | perl-58df49fa9407d97e632c9f1c46d062b432723965.tar.gz |
skip the porting/utils.t unless in a git checkout
Today I tried to build 5.16.0-RC0 on my Linode and I got this:
ok 78 # skip utils/cpanp-run-perl executes code in a BEGIN block which fails for
empty @ARGV
not ok 79 - utils/cpanp compiles
# Failed test 79 - utils/cpanp compiles at porting/utils.t line 81
# got "defined(%hash) is deprecated at /usr/local/lib/perl5/site_perl/5.10.
0/Locale/Maketext/Lexicon.pm line 307.\n\t(Maybe you should just omit the define
d()?)\nutils/cpanp syntax OK\n"
# expected "utils/cpanp syntax OK\n"
Ugh. We really don't want this to happen to somebody else, because this
test is "do not let the developer break stuff" not "make sure the install
works."
-rw-r--r-- | t/porting/utils.t | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/t/porting/utils.t b/t/porting/utils.t index 21a9cc68f1..30c02b7893 100644 --- a/t/porting/utils.t +++ b/t/porting/utils.t @@ -24,6 +24,13 @@ use strict; require 't/test.pl'; +# It turns out that, since the default @INC will include your old 5.x libs, if +# you have them, the Porting utils might load a library that no longer compiles +# clean. This actually happened, with Local::Maketext::Lexicon from a 5.10.0 +# preventing 5.16.0-RC0 from testing successfully. This test is really only +# needed for porters, anyway. -- rjbs, 2012-05-10 +find_git_or_skip('all'); + my @maybe; open my $fh, '<', 'MANIFEST' or die "Can't open MANIFEST: $!"; |