mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-02-22 15:15:36 +02:00
tests: do not fail on read-only root file system
* tests/touch/not-owner: Handle the case when the root file system is mounted read-only. Reported by Solar Designer.
This commit is contained in:
committed by
Jim Meyering
parent
ad1f07b3c4
commit
9cf9f8e1e0
@@ -42,7 +42,10 @@ touch / > out 2>&1 && fail=1
|
||||
|
||||
# On SunOS4, EPERM is `Not owner'.
|
||||
# On some *BSD systems it's `Operation not permitted'.
|
||||
for msg in 'Not owner' 'Operation not permitted' 'Permission denied'; do
|
||||
# On a system where root file system is mounted read-only
|
||||
# it's `Read-only file system'.
|
||||
for msg in 'Not owner' 'Operation not permitted' 'Permission denied' \
|
||||
'Read-only file system'; do
|
||||
cat > exp <<EOF
|
||||
touch: setting times of \`/': $msg
|
||||
EOF
|
||||
|
||||
Reference in New Issue
Block a user