bug? in Test::More error counting ?

2003-12-15 Thread Jim Cromie
hi folks,

I just got a CPANTS report..

I am puzzled how
5 tests could fail 10 times
DIED. FAILED tests 1-5
Failed 5/5 tests, 0.00% okay
Failed Test Stat Wstat Total Fail  Failed  List of Failed
---
t\speed.t255 65280??   ??   %  ??
t\warns.t  2   512 5   10 200.00%  1-5
later in the report, I see following, which may be a
factor, but I cant see how it happens, much less how it
alters the test-count.
You tried to plan twice!  Second plan at t\warns.t line 5

any comments ?
thx



Re: bug? in Test::More error counting ? MINIMIZED TEST CASE

2003-12-15 Thread Jim Cromie
Jim Cromie wrote:

hi folks,

Failed Test Stat Wstat Total Fail  Failed  List of Failed
--- 

t\warns.t  2   512 5   10 200.00%  1-5

You tried to plan twice!  Second plan at t\warns.t line 5


It appears that this doesnt error on 5.8.2,  but is repeatable on 5.00503,
as follows:
cat warns.t-2warns
#!perl
use Test::More (tests => 5);
eval "use Test::Warn";
plan skip_all =>
   "Test::Warn needed to test that warnings are properly issued"
   if $@;
__END__
[EMAIL PROTECTED] Data-Dumper-EasyOO-0.01]$ perl5.00503 warns.t-2warns
1..5
You tried to plan twice!  Second plan at warns.t-2warns line 5
# Looks like your test died before it could output anything.




Re: bug? in Test::More error counting ? MINIMIZED TEST CASE

2003-12-15 Thread Andy Lester
> It appears that this doesnt error on 5.8.2,  but is repeatable on 5.00503,
> as follows:

I don't see any problem here.  You can't have more than one plan.

xoa


-- 
Andy Lester => [EMAIL PROTECTED] => www.petdance.com => AIM:petdance


Re: bug? in Test::More error counting ? MINIMIZED TEST CASE

2003-12-15 Thread Jim Cromie
Andy Lester wrote:

It appears that this doesnt error on 5.8.2,  but is repeatable on 5.00503,
as follows:
   

I don't see any problem here.  You can't have more than one plan.

xoa

 

The different Version responses threw me..   I worked out a way...

use Test::More;
use Benchmark();
plan skip_all =>
   "Benchmark::cmpthese not implemented in this Benchmark version 
$Benchmark::VERSION"
   unless defined &Benchmark::cmpthese;

plan (tests => 2);

IOW - plan only after skip_all special case...

thx



Re: bug? in Test::More error counting ? MINIMIZED TEST CASE

2003-12-15 Thread Michael G Schwern
On Mon, Dec 15, 2003 at 11:32:12AM -0600, Andy Lester wrote:
> > It appears that this doesnt error on 5.8.2,  but is repeatable on 5.00503,
> > as follows:
> 
> I don't see any problem here.  You can't have more than one plan.

t\warns.t  2   512 5   10 200.00%  1-5

Five tests.  Ten failures.  Tests 1 through 5 failed.  That might be a 
problem.

-- 
Michael G Schwern[EMAIL PROTECTED]  http://www.pobox.com/~schwern/
What about MY need to be generalized and easily dismissed?
http://www.goats.com/archive/000221.html