diff options
author | Michael G. Schwern <schwern@pobox.com> | 2010-09-13 19:14:04 -0700 |
---|---|---|
committer | Florian Ragwitz <rafl@debian.org> | 2010-09-15 18:59:41 +0200 |
commit | c4ef71839c80edd34826a0701d330383d1d26433 (patch) | |
tree | d9c8bbadd7d8030377a86dc700d58f69f43f30e8 /t | |
parent | 140f53691aaf373827763070261a076e87563f46 (diff) | |
download | perl-c4ef71839c80edd34826a0701d330383d1d26433.tar.gz |
Add done_testing from Test::More
Diffstat (limited to 't')
-rw-r--r-- | t/test.pl | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -54,6 +54,17 @@ sub plan { $planned = $n; } + +# Set the plan at the end. See Test::More::done_testing. +sub done_testing { + my $n = $test - 1; + $n = shift if @_; + + _print "1..$n\n"; + $planned = $n; +} + + END { my $ran = $test - 1; if (!$NO_ENDING) { |