From: Nick Ing-Simmons Date: Wed, 6 Dec 2000 19:20:47 +0000 (+0000) Subject: Fix harness to be less picky X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=252585246f39d85ad7388d28c06dd6ed97b4d47d;p=p5sagit%2Fp5-mst-13.2.git Fix harness to be less picky p4raw-id: //depot/perlio@8017 --- diff --git a/lib/Test/Harness.pm b/lib/Test/Harness.pm index a3c1753..a8038df 100644 --- a/lib/Test/Harness.pm +++ b/lib/Test/Harness.pm @@ -121,7 +121,7 @@ sub runtests { $ok++; $totok++; } - } elsif (/^ok\s*(\d*)(\s*\#\s*[Ss]kip\S*(?:(?>\s+)(.+))?)?$/) { + } elsif (/^ok\s*(\d*) *(\s*\#\s*[Ss]kip\S*(?:(?>\s+)(.+))?)?$/) { $this = $1 if $1 > 0; print "${ml}ok $this/$max" if $ml; $ok++; @@ -138,8 +138,13 @@ sub runtests { $skip_reason = $reason; } $bonus++, $totbonus++ if $todo{$this}; + } elsif (/^ok\s*(\d*)\s*\#([^\r]*)$/) { + $this = $1 if $1 > 0; + print "${ml}ok $this/$max" if $ml; + $ok++; + $totok++; } else { - # an ok or not ok not matching the 2 cases above... + # an ok or not ok not matching the 3 cases above... # just ignore it for compatibility with TEST next; }