develooper Front page | perl.perl5.porters | Postings from December 2001

[PATCH t/op/grent.t] Double double test test header header

Thread Next
From:
Michael G Schwern
Date:
December 30, 2001 15:07
Subject:
[PATCH t/op/grent.t] Double double test test header header
Message ID:
20011230230755.GG12840@blackrider
If the grent test is skipped, you'll get something like:

    1..5
    1..0 # skip: no gid 0

because the test is planned and then later planned to be skipped.

I'll also patch up Test::More to disallow double plans.


--- t/op/grent.t	2001/12/30 23:04:10	1.1
+++ t/op/grent.t	2001/12/30 23:04:21
@@ -5,7 +5,7 @@
     @INC = '../lib';
 }
 
-use Test::More tests => 5;
+use Test::More;
 
 BEGIN {
     our $hasgr;
@@ -22,6 +22,7 @@
     unless (@grent) { plan skip_all => "no gid 0"; }
 }
 
+plan tests => 5;
 
 BEGIN { use_ok('User::grent'); }
 can_ok(__PACKAGE__, 'getgrgid');


-- 

Michael G. Schwern   <schwern@pobox.com>    http://www.pobox.com/~schwern/
Perl Quality Assurance	    <perl-qa@perl.org>	       Kwalitee Is Job One
<Skrewtape> I've heard that semen tastes different depending on diet.  Is that
	    true?
<Skrewtape> Hello?
<Schwern> Skrewtape:  Hang on, I'm conducting research.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About