summaryrefslogtreecommitdiff
path: root/lib/User
diff options
context:
space:
mode:
Diffstat (limited to 'lib/User')
-rw-r--r--lib/User/grent.t6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/User/grent.t b/lib/User/grent.t
index 8803429bee..f7eb2c2add 100644
--- a/lib/User/grent.t
+++ b/lib/User/grent.t
@@ -22,9 +22,11 @@ BEGIN {
unless (@grent) { plan skip_all => "no gid 0"; }
}
-plan tests => 5;
+BEGIN {
+ plan tests => 5;
+ use_ok('User::grent');
+}
-BEGIN { use_ok('User::grent'); }
can_ok(__PACKAGE__, 'getgrgid');
my $grent = getgrgid 0;