From: Dmitry V. Levin Date: Sun, 22 Nov 2009 15:37:34 +0000 (+0300) Subject: tests: do not fail on read-only root file system X-Git-Tag: v8.2~30 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9cf9f8e1e05c07e9dcf707e604b37c9a8f736c29;p=thirdparty%2Fcoreutils.git 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. --- diff --git a/tests/touch/not-owner b/tests/touch/not-owner index 3dd8a80867..9cfa026bbf 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 <