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