mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-11 01:42:17 +02:00
tests: skip chown/separator with conflicting group IDs
* tests/chown/separator.sh: skip test if the user's group has multiple entries. Fixes http://bugs.gnu.org/16532
This commit is contained in:
committed by
Pádraig Brady
parent
be97f3e0ef
commit
9bc386382c
@@ -31,6 +31,12 @@ test -n "$id_g" || framework_failure_
|
||||
id_gn=$(id -gn) || framework_failure_
|
||||
test -n "$id_gn" || framework_failure_
|
||||
|
||||
# Systems with both local and external groups with conflicting IDs,
|
||||
# were seen to fail this test erroneously with EPERM errors.
|
||||
test $(getent group | grep "^$id_gn:" | wc -l) = 1 ||
|
||||
skip_ "group '$id_gn' not biunique: " \
|
||||
"$(getent group | grep "^$id_gn:" | tr '\n' ',')"
|
||||
|
||||
# FreeBSD 6.x's getgrnam fails to look up a group name containing
|
||||
# a space. On such a system, skip this test if the group name contains
|
||||
# a byte not in the portable filename character set.
|
||||
|
||||
Reference in New Issue
Block a user