In perl.git, the branch blead has been updated <http://perl5.git.perl.org/perl.git/commitdiff/e0d4127d4f78760fc7f7c1fa6ebacf705baedb07?hp=eac006c9b5f4ca1954ec680fed91d18a53c763e1>
- Log ----------------------------------------------------------------- commit e0d4127d4f78760fc7f7c1fa6ebacf705baedb07 Author: Nicholas Clark <[email protected]> Date: Tue Apr 12 15:00:51 2011 +0100 Fix eval.t under minitest, inadvertently broken by 0d804ff61f3a2df2 That change attempted to skip if use Devel::Peek failed with a skip message of of $@. Unfortunately, in this situation, $@ has multiple lines, which is not valid as a skip message. So instead skip if we're miniperl, or we haven't built Devel::Peek, otherwise attempt to run the test. ----------------------------------------------------------------------- Summary of changes: t/op/eval.t | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/t/op/eval.t b/t/op/eval.t index 526ea4c..fbe939c 100644 --- a/t/op/eval.t +++ b/t/op/eval.t @@ -465,8 +465,10 @@ cmp_ok(length $@, '==', 0, 'length of $@ after eval'); # Check if eval { 1 }; completely resets $@ SKIP: { - skip("Can't load Devel::Peek: $@", 2) - unless eval "use Devel::Peek; 1;"; + skip_if_miniperl('no dynamic loading on miniperl, no Devel::Peek', 2); + require Config; + skip('Devel::Peek was not built', 2) + unless $Config::Config{extensions} =~ /\bDevel\/Peek\b/; my $tempfile = tempfile(); open $prog, ">", $tempfile or die "Can't create test file"; -- Perl5 Master Repository
