summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-16 09:21:20 +0000
committerJim Meyering <jim@meyering.net>2000-12-16 09:21:20 +0000
commitbe74434bbdc2d023fe1f91966c9afe9d31b81cd4 (patch)
tree3723c48612fbf37140f84ceb16d2bc86047fe0fe
parentbbc027cf8bc69cc29a3242283341ed2430a217fc (diff)
downloadcoreutils-be74434bbdc2d023fe1f91966c9afe9d31b81cd4.tar.xz
Use group-names.
-rwxr-xr-xtests/chgrp/basic12
1 files changed, 1 insertions, 11 deletions
diff --git a/tests/chgrp/basic b/tests/chgrp/basic
index c3fbfbda5..e186e0ab8 100755
--- a/tests/chgrp/basic
+++ b/tests/chgrp/basic
@@ -8,6 +8,7 @@ fi
. $srcdir/../envvar-check
. $srcdir/../lang-default
+. $srcdir/../group-names
pwd=`pwd`
tmp=basic.$$
@@ -25,17 +26,6 @@ fi
fail=0
-groups=`id -nG 2>/dev/null`
-case "$groups" in
- *' '*) ;;
- *) cat <<EOF 1>&2
-$0: this test requires that you be a member of more than one group,
-but running \`id -nG' either failed or found just one.
-EOF
- (exit 77); exit
- ;;
-esac
-
set _ $groups; shift
g1=$1
g2=$2