summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-12-16 09:23:10 +0000
committerJim Meyering <jim@meyering.net>2000-12-16 09:23:10 +0000
commit8233adab596d4ae665a4d8729090dd81d279e662 (patch)
tree7024d84ecd5fae46ddbaf8aef0835ad04713fdd7
parentbe74434bbdc2d023fe1f91966c9afe9d31b81cd4 (diff)
downloadcoreutils-8233adab596d4ae665a4d8729090dd81d279e662.tar.xz
Use group-names.
-rwxr-xr-xtests/chgrp/deref13
-rwxr-xr-xtests/chgrp/recurse13
2 files changed, 4 insertions, 22 deletions
diff --git a/tests/chgrp/deref b/tests/chgrp/deref
index 938c1cb8d..afe7b465a 100755
--- a/tests/chgrp/deref
+++ b/tests/chgrp/deref
@@ -6,6 +6,8 @@ if test "$VERBOSE" = yes; then
chgrp --version
fi
+. $srcdir/../group-names
+
pwd=`pwd`
tmp=slink.$$
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
@@ -20,17 +22,6 @@ if test $framework_failure = 1; then
(exit 1); exit
fi
-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
diff --git a/tests/chgrp/recurse b/tests/chgrp/recurse
index 5e0c8995f..d1d70248c 100755
--- a/tests/chgrp/recurse
+++ b/tests/chgrp/recurse
@@ -6,6 +6,8 @@ if test "$VERBOSE" = yes; then
chgrp --version
fi
+. $srcdir/../group-names
+
pwd=`pwd`
tmp=slink.$$
trap 'status=$?; cd $pwd; rm -rf $tmp && exit $status' 0
@@ -20,17 +22,6 @@ if test $framework_failure = 1; then
(exit 1); exit
fi
-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