diff options
author | Michael G. Schwern <schwern@pobox.com> | 2001-02-17 20:48:50 -0500 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2001-02-18 17:10:53 +0000 |
commit | 37ce32a705db2abf918fb9f1a8653161f4a1806f (patch) | |
tree | 8ee401b49d954a398ee186eb549a68fcc5572abc /t/TEST | |
parent | ec947e58a094f17c7337a09660f45c575423e7e1 (diff) | |
download | perl-37ce32a705db2abf918fb9f1a8653161f4a1806f.tar.gz |
Adding todo tests
Message-ID: <20010218014850.C19957@magnonel.guild.net>
p4raw-id: //depot/perl@8824
Diffstat (limited to 't/TEST')
-rwxr-xr-x | t/TEST | 17 |
1 files changed, 14 insertions, 3 deletions
@@ -119,9 +119,20 @@ EOT $ok = 1; } else { - $next = $1, $ok = 0, last if /^not ok ([0-9]*)/; - if (/^ok (\d+)(\s*#.*)?/ && $1 == $next) { - $next = $next + 1; + if (/^(not )?ok (\d+)(\s*#.*)?/ && + $2 == $next) + { + my($not, $num, $extra) = ($1, $2, $3); + my($istodo) = $extra =~ /^\s*#\s*TODO/ if $extra; + + if( $not && !$istodo ) { + $ok = 0; + $next = $num; + last; + } + else { + $next = $next + 1; + } } elsif (/^Bail out!\s*(.*)/i) { # magic words die "FAILED--Further testing stopped" . ($1 ? ": $1\n" : ".\n"); |