This is an automated email from the git hooks/post-receive script. intrigeri pushed a commit to annotated tag 0.17 in repository libdist-zilla-plugin-test-eol-perl.
commit 77240fb0a8821c182b0fa1bfe81ec9399a5cc549 Author: Karen Etheridge <[email protected]> Date: Sat Jan 31 00:09:39 2015 -0800 add hack for older Test::EOL before version 1.5, Test::EOL loaded FindBin, which would get confused by $0 not being what it expected it to be. Loading it first before running another test file keeps it happy. --- Changes | 1 + t/01-basic.t | 4 ++++ t/03-finder.t | 4 ++++ 3 files changed, 9 insertions(+) diff --git a/Changes b/Changes index 94d9beb..f6cd699 100644 --- a/Changes +++ b/Changes @@ -8,6 +8,7 @@ Revision history for {{$dist->name}} Test::EOL Test::NoTabs that tests nothing when the test is two levels deep from the dist root (see RT#66177) - add new 'file' option, for adding additional files to test + - allow this distribution's tests to run smoothly with older Test::EOL 0.16 2014-11-17 03:00:59Z - allow tests to pass even while upstream modules have warnings under diff --git a/t/01-basic.t b/t/01-basic.t index de0f152..5d6b615 100644 --- a/t/01-basic.t +++ b/t/01-basic.t @@ -96,6 +96,10 @@ cmp_deeply( 'prereqs are properly injected for the develop phase', ) or diag 'got distmeta: ', explain $tzil->distmeta; +# not needed, but Test::EOL (pre-1.5) loads it from the generated test, and $0 +# is wrong for it +use FindBin; + my $files_tested; subtest 'run the generated test' => sub diff --git a/t/03-finder.t b/t/03-finder.t index e47d17d..83b68c4 100644 --- a/t/03-finder.t +++ b/t/03-finder.t @@ -79,6 +79,10 @@ unlike($content, qr/'\Q$_\E'/m, "test does not check $_") foreach ( path(qw(xt bar.t)), ); +# not needed, but Test::EOL (pre-1.5) loads it from the generated test, and $0 +# is wrong for it +use FindBin; + my $files_tested; subtest 'run the generated test' => sub -- Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libdist-zilla-plugin-test-eol-perl.git _______________________________________________ Pkg-perl-cvs-commits mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits
