Refactor most of the cut & paste for setting prefix/prefixexp variables
[p5sagit/p5-mst-13.2.git] / lib / User / grent.t
index 6d36dd1..f7eb2c2 100644 (file)
@@ -5,7 +5,7 @@ BEGIN {
     @INC = '../lib';
 }
 
-use Test::More tests => 5;
+use Test::More;
 
 BEGIN {
     our $hasgr;
@@ -22,8 +22,11 @@ BEGIN {
     unless (@grent) { plan skip_all => "no gid 0"; }
 }
 
+BEGIN {
+    plan tests => 5;
+    use_ok('User::grent');
+}
 
-BEGIN { use_ok('User::grent'); }
 can_ok(__PACKAGE__, 'getgrgid');
 
 my $grent = getgrgid 0;