The default installation of Cygwin has 500 as root's uid.
Jarkko Hietaniemi [Tue, 26 Jun 2001 01:15:39 +0000 (01:15 +0000)]
p4raw-id: //depot/perl@10945

lib/User/pwent.t

index e274265..701c160 100644 (file)
@@ -28,7 +28,8 @@ print "ok 1\n";
 
 my $pwent = getpwuid 0; # This is the OO getpwuid.
 
-print "not " unless $pwent->uid    == 0;
+print "not " unless $pwent->uid    == 0 ||
+                    ($^O eq 'cygwin'  && $pwent->uid == 500); # go figure
 print "ok 2\n";
 
 print "not " unless $pwent->name   == $pwent[0];