Subject: | t/perl-minver.t requires Test::MinimumVersion unconditionally |
Date: | Fri, 13 Jul 2007 17:42:31 -0300 |
To: | "Ricardo SIGNES" <rjbs [...] cpan.org>, bug-Email-Simple [...] rt.cpan.org |
From: | "Adriano Ferreira" <a.r.ferreira [...] gmail.com> |
Hi, Ricardo.
Your latest Email-Simple distribution
(http://search.cpan.org/src/RJBS/Email-Simple-2.000/) is failing due
to "t/perl-minver.t".
Its code is:
#!perl
use strict;
use Test::More;
eval { use Test::MinimumVersion 0.003 }; # <<<<<<<<<<<<< the culprit
plan skip_all => "this test requires Test::MinimumVersion" if $@;
all_minimum_version_ok(5.00503);
When you used "eval BLOCK" rather than "eval STRING", the use
statement executes in a BEGIN at compile time rather than waiting for
failing at runtime when you could check $@. So the solution is just
falling back to the awful "eval STRING" in this case.
Cheers,
Adriano Ferreira