Dne Čt 02.Květen.2013 15:58:02, ANDK napsal(a):
Show quoted text> As per subject.
>
> Let me put it this way: my statistical analysis discovered the
> correlation. I'm not saying, the bug is on the end of Test::Class.
> It's just the case that Test::Class now has tests failing with
> Test::Simple 0.98_04
Fix for issues up to 0.98_04 is attached.
Show quoted text> and 0.98_05
This is tricky. The failure is caused by Test-Simple commit:
commit 497965306444982d4948e24811e44e72619885f8
Author: Michael G. Schwern <schwern@pobox.com>
Date: Mon Apr 15 17:13:43 2013 +0100
Fix Test::Builder::Tester so it works with subtests.
They already work in TB1.5 and this wasn't hard to fix.
For #350
Specifically with these hunks:
@@ -469,11 +470,19 @@ sub expect {
my @checks = @_;
foreach my $check (@checks) {
+ $check = $self->_account_for_subtest($check);
$check = $self->_translate_Failed_check($check);
push @{ $self->{wanted} }, ref $check ? $check : "$check\n";
}
}
+sub _account_for_subtest {
+ my( $self, $check ) = @_;
+
+ # Since we ship with Test::Builder, calling a private method is safe...ish.
+ return $t->_indent . $check;
+}
+
This causes that test_err() called with a regular expression does not match.
I don't know where is the problem.
-- Petr