summaryrefslogtreecommitdiff
path: root/tests/touch/not-owner
diff options
context:
space:
mode:
Diffstat (limited to 'tests/touch/not-owner')
-rwxr-xr-xtests/touch/not-owner5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/touch/not-owner b/tests/touch/not-owner
index 3dd8a8086..9cfa026bb 100755
--- a/tests/touch/not-owner
+++ b/tests/touch/not-owner
@@ -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