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:
@@ -34,7 +34,7 @@ MYGRP=$(id -gn) || AT_SKIP_TEST
|
||||
|
||||
mkdir dir
|
||||
# Ensure correct group id on BSDs.
|
||||
chown :$MYGID dir >/dev/null 2>/dev/null
|
||||
chown :$MYGID dir || AT_SKIP_TEST
|
||||
genfile --file dir/file
|
||||
|
||||
|
||||
@@ -74,4 +74,3 @@ OK
|
||||
AT_CLEANUP
|
||||
|
||||
m4_popdef([TESTOP])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user