summaryrefslogtreecommitdiff
path: root/t
diff options
context:
space:
mode:
authorJan Dubois <jand@activestate.com>1999-05-29 10:46:22 +0200
committerJarkko Hietaniemi <jhi@iki.fi>1999-05-29 11:38:16 +0000
commit16368d62ab0af61605bf1c6ec1b68263c56a52d0 (patch)
tree8981182d3b0930f2bc749d4ce51afae5e3d5e9e3 /t
parentab8a6ff7d9a94d1cba6705e6503a6e7f60fd3afb (diff)
downloadperl-16368d62ab0af61605bf1c6ec1b68263c56a52d0.tar.gz
Safeguard against unimplemented functions in pwuid.t and grent.t
To: Gurusamy Sarathy <gsar@activestate.com> Cc: perl5-porters@perl.org Message-ID: <374f8007.2016008@smtp1.ibm.net> p4raw-id: //depot/cfgperl@3505
Diffstat (limited to 't')
-rwxr-xr-xt/op/grent.t5
-rwxr-xr-xt/op/pwent.t5
2 files changed, 10 insertions, 0 deletions
diff --git a/t/op/grent.t b/t/op/grent.t
index 9b06f11a3e..c9d3797533 100755
--- a/t/op/grent.t
+++ b/t/op/grent.t
@@ -3,6 +3,11 @@
BEGIN {
chdir 't' if -d 't';
unshift @INC, "../lib" if -d "../lib";
+ eval {my @n = getgrgid 0};
+ if ($@ && $@ =~ /(The \w+ function is unimplemented)/) {
+ print "1..0 # Skip: $1\n";
+ exit 0;
+ }
eval { require Config; import Config; };
my $reason;
if ($Config{'i_grp'} ne 'define') {
diff --git a/t/op/pwent.t b/t/op/pwent.t
index feee6f2b90..788d2f2701 100755
--- a/t/op/pwent.t
+++ b/t/op/pwent.t
@@ -3,6 +3,11 @@
BEGIN {
chdir 't' if -d 't';
unshift @INC, "../lib" if -d "../lib";
+ eval {my @n = getpwuid 0};
+ if ($@ && $@ =~ /(The \w+ function is unimplemented)/) {
+ print "1..0 # Skip: $1\n";
+ exit 0;
+ }
eval { require Config; import Config; };
my $reason;
if ($Config{'i_pwd'} ne 'define') {