}
BEGIN {
- our @grent = getgrgid 0; # This is the function getgrgid.
+ our $gid = $^O ne 'cygwin' ? 0 : 18;
+ our @grent = getgrgid $gid; # This is the function getgrgid.
unless (@grent) { plan skip_all => "no gid 0"; }
}
can_ok(__PACKAGE__, 'getgrgid');
-my $grent = getgrgid 0;
+my $grent = getgrgid $gid;
is( $grent->name, $grent[0], 'name matches core getgrgid' );