From: Peter Prymmer Date: Fri, 3 May 2002 14:52:12 +0000 (-0400) Subject: add niscat (aka NIS 3, aka NIS +) to t/op/pwent X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=a9a3fcb4fd802da58964e4e1429d822b0ced76f4;p=p5sagit%2Fp5-mst-13.2.git add niscat (aka NIS 3, aka NIS +) to t/op/pwent Message-ID: p4raw-id: //depot/perl@16410 --- diff --git a/t/op/pwent.t b/t/op/pwent.t index fc71f57..4d9de44 100755 --- a/t/op/pwent.t +++ b/t/op/pwent.t @@ -49,6 +49,18 @@ BEGIN { } } + if (not defined $where) { # Try NIS+ + foreach my $niscat (qw(/bin/niscat)) { + if (-x $niscat && + open(PW, "$niscat passwd.org_dir 2>/dev/null |") && + defined()) { + $where = "NIS+ $niscat passwd.org_dir"; + undef $reason; + last; + } + } + } + if ($reason) { # Give up. print "1..0 # Skip: $reason\n"; exit 0;