When a test fails, an extra test is run to output debugging info; this
will cause the planned number of tests to be wrong, which will output an
extra, confusing message. This adds an explanation that the number is
expected to be wrong, hence not to worry.
my $result = fresh_perl($actual_pattern);
if ($? != 0) { # Re-run so as to display STDERR.
- fail($pattern);
+ fail($pattern, "Until this is fixed, the planned number of tests will be wrong");
fresh_perl($actual_pattern, { stderr => 0, verbose => 1 });
return;
}