Port --numeric-owner basic tests to macOS

* tests/numeric.at: If chown fails, skip the test.
This is needed on macOS 12.6 if the user has group
ID 4294967295 (nogroup), which chown rejects.
This commit is contained in:
Paul Eggert
2024-01-01 19:09:59 -08:00
parent c6f0ad5117
commit 835b0c7dee

View File

@@ -34,7 +34,7 @@ MYGRP=$(id -gn) || AT_SKIP_TEST
mkdir dir mkdir dir
# Ensure correct group id on BSDs. # Ensure correct group id on BSDs.
chown :$MYGID dir >/dev/null 2>/dev/null chown :$MYGID dir || AT_SKIP_TEST
genfile --file dir/file genfile --file dir/file
@@ -74,4 +74,3 @@ OK
AT_CLEANUP AT_CLEANUP
m4_popdef([TESTOP]) m4_popdef([TESTOP])