New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enable lib/User/*.t on cygwin #8937
Comments
From @rurbanThis is a bug report for perl from cygwin@cygwin.com, Attached patch fixes Should be to bleadperl 2007-06-21 01:13:14 rurban@x-ray.at Flags: Site configuration information for perl 5.9.4: Configured by rurban at Wed Jun 20 02:16:19 GMT 2007. Summary of my perl5 (revision 5 version 9 subversion 4) configuration: Locally applied patches: @INC for perl 5.9.4: Environment for perl 5.9.4: PATH=/usr/bin:/usr/sbin:/usr/local/sbin:/usr/bin:/usr/sbin:/usr/local/sbin:/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/WINDOWS/system32:/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/System32/Wbem:/bin:/cygdrive/c/uti:/bin:/usr/lib/lapack -- |
From @rurbanpl-cygwin-lib-User-t.patch2007-06-21 01:13:14 rurban@x-ray.at
* lib/User/grent.t, lib/User/pwent.t: enable cygwin tests by
using known working magic uid/gid.
Fixes 1..0 # Skip: no uid 0, 1..0 # Skip no gid 0
--- bleadperl/lib/User/grent.t.orig 2006-06-13 19:29:20.000000000 +0000
+++ bleadperl/lib/User/grent.t 2007-06-20 23:09:06.281250000 +0000
@@ -18,7 +18,8 @@
}
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"; }
}
@@ -29,7 +30,7 @@
can_ok(__PACKAGE__, 'getgrgid');
-my $grent = getgrgid 0;
+my $grent = getgrgid $gid;
is( $grent->name, $grent[0], 'name matches core getgrgid' );
--- bleadperl/lib/User/pwent.t.orig 2006-06-13 19:29:20.000000000 +0000
+++ bleadperl/lib/User/pwent.t 2007-06-20 23:10:17.406250000 +0000
@@ -21,6 +21,7 @@
# On VMS getpwuid(0) may return [$gid,0] UIC info (which may not exist).
# It is better to use the $< uid for testing on VMS instead.
if ( $^O eq 'VMS' ) { $uid = $< ; }
+ if ( $^O eq 'cygwin' ) { $uid = 500 ; }
our @pwent = getpwuid $uid; # This is the function getpwuid.
unless (@pwent) { print "1..0 # Skip: no uid $uid\n"; exit 0 }
}
|
From @rgsThanks, applied as #31435 |
From [Unknown Contact. See original ticket]Thanks, applied as #31435 |
@rgs - Status changed from 'new' to 'resolved' |
Migrated from rt.perl.org#43273 (status was 'resolved')
Searchable as RT43273$
The text was updated successfully, but these errors were encountered: