This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
re/anyof.t: Clarify failing message
authorKarl Williamson <khw@cpan.org>
Wed, 18 Sep 2019 18:31:11 +0000 (12:31 -0600)
committerKarl Williamson <khw@cpan.org>
Sun, 17 Nov 2019 19:29:27 +0000 (12:29 -0700)
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.

t/re/anyof.t

index a43cbae..b99ba62 100644 (file)
@@ -60,7 +60,7 @@ sub  get_compiled ($) {
 
     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;
     }