summaryrefslogtreecommitdiff
path: root/t/op/groups.t
diff options
context:
space:
mode:
authorJohn E. Malmberg <wb8tyw@qsl.net>2008-06-12 14:50:01 -0500
committerCraig A. Berry <craigberry@mac.com>2008-06-13 23:56:18 +0000
commit211b0ba37c80f1f135df33dc279414adc3af971d (patch)
treec073de42566435ddb0f21a95b9aec7bae8e5e1c2 /t/op/groups.t
parent3d4f2f8982098e72437cca9a29504c98a4c9ed22 (diff)
downloadperl-211b0ba37c80f1f135df33dc279414adc3af971d.tar.gz
[patch@34044] Enable getgrgid on VMS
From: "John E. Malmberg" <wb8tyw@qsl.net> Message-id: <4851C439.8070007@qsl.net> With some revisions. p4raw-id: //depot/perl@34052
Diffstat (limited to 't/op/groups.t')
-rwxr-xr-xt/op/groups.t5
1 files changed, 3 insertions, 2 deletions
diff --git a/t/op/groups.t b/t/op/groups.t
index 5121ff8fbb..404b8cd8ab 100755
--- a/t/op/groups.t
+++ b/t/op/groups.t
@@ -1,7 +1,7 @@
#!./perl
$ENV{PATH} ="/bin:/usr/bin:/usr/xpg4/bin:/usr/ucb" .
- exists $ENV{PATH} ? ":$ENV{PATH}" : "";
+ exists $ENV{PATH} ? ":$ENV{PATH}" : "" unless $^O eq 'VMS';
$ENV{LC_ALL} = "C"; # so that external utilities speak English
$ENV{LANGUAGE} = 'C'; # GNU locale extension
@@ -27,7 +27,8 @@ unless (eval { getgrgid(0); 1 }) {
exit 0;
}
-quit() if (($^O eq 'MSWin32' || $^O eq 'NetWare') or $^O =~ /lynxos/i);
+quit() if (($^O eq 'MSWin32' || $^O eq 'NetWare' || $^O eq 'VMS')
+ or $^O =~ /lynxos/i);
# We have to find a command that prints all (effective
# and real) group names (not ids). The known commands are: