12 (my $success, my $err_code, undef, undef, my $stderr)
22 plan skip_all => "Couldn't capture buffers" if $success and not defined $stderr;
23 plan tests => $total + 1;
25 $stderr = join '', @$stderr;
28 diag "Failed to execute data file (error $err_code)";
29 fail "Couldn't run test $_" for 1 .. $total + 1;
33 my %fail = map { $_ => 1 } 1 .. $total;
36 while ($stderr =~ /^Indirect\s+call\s+of\s+method\s+"([^"]+)"\s+on\s+object\s+"([^"]+)"/mg) {
37 my ($m, $o) = ($1, $2);
39 if ($m =~ /^(?:new|potato)(\d+)$/) {
41 } elsif ($o =~ /^Hlagh(\d+)$/) {
48 ok($fail{$id}, "test $id failed as expected");
53 fail("test $_ hasn't failed") for sort { $a <=> $b } keys %fail;
54 is($extra_fail, 0, 'no extra fails');