mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
tests: skip a chown test on FreeBSD 6.x
* tests/chown/separator: Skip this test if is likely to fail due to the combination of a bogus group name and a broken getgrnam function.
This commit is contained in:
1 parent
394f88c4aa
commit
47ed009e57
1 file changed
+11
@@ -35,6 +35,17 @@ test -n "$id_g" || framework_failure
|
||||
id_gn=`id -gn` || framework_failure
|
||||
test -n "$id_gn" || framework_failure
|
||||
|
||||
# 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.
|
||||
case $host_triplet in
|
||||
*-freebsd6.*)
|
||||
case $id_gn in
|
||||
*[^a-zA-Z0-9._-]*) skip_test_ "invalid group name: $id_gn";;
|
||||
esac;;
|
||||
*) ;;
|
||||
esac
|
||||
|
||||
fail=0
|
||||
|
||||
chown '' . || fail=1
|
||||
|
||||
Reference in new issue
Block a user