From: Rafael Garcia-Suarez Date: Wed, 17 Apr 2002 19:54:49 +0000 (+0000) Subject: Adjust test for groups that appear multiple times on Cygwin X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=04333ffaffc1418007ebe7cddbeaba6233772d93;p=p5sagit%2Fp5-mst-13.2.git Adjust test for groups that appear multiple times on Cygwin p4raw-id: //depot/perl@15977 --- diff --git a/t/op/groups.t b/t/op/groups.t index 77dbb2b..695f989 100755 --- a/t/op/groups.t +++ b/t/op/groups.t @@ -121,8 +121,8 @@ $seen{$pwgid}++; print "# pwgid = $pwgid, pwgnam = $pwgnam\n"; for (split(' ', $()) { - next if $seen{$_}++; ($group) = getgrgid($_); + next if (! defined $group or ! grep { $_ eq $group } @gr) and $seen{$_}++; if (defined $group) { push(@gr, $group); } @@ -133,7 +133,7 @@ for (split(' ', $()) { print "# gr = @gr\n"; -if ($^O =~ /^(?:uwin|solaris)$/) { +if ($^O =~ /^(?:uwin|cygwin|solaris)$/) { # Or anybody else who can have spaces in group names. $gr1 = join(' ', grep(!$did{$_}++, sort split(' ', join(' ', @gr)))); } else {