diff options
Diffstat (limited to 'tests/rm/read-only.sh')
-rwxr-xr-x | tests/rm/read-only.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rm/read-only.sh b/tests/rm/read-only.sh index dbb3f540..377305cd 100755 --- a/tests/rm/read-only.sh +++ b/tests/rm/read-only.sh @@ -1,7 +1,7 @@ #!/bin/sh # Ensure that rm -f nonexistent-file-on-read-only-fs succeeds. -# Copyright (C) 2009-2013 Free Software Foundation, Inc. +# Copyright (C) 2009-2014 Free Software Foundation, Inc. # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -42,7 +42,7 @@ test $skip = 1 \ # Applying rm -f to a nonexistent file on a read-only file system must succeed. rm -f mnt/no-such > out 2>&1 || fail=1 # It must produce no diagnostic. -test -s out && fail=1 +compare /dev/null out || fail=1 # However, trying to remove an existing file must fail. rm -f mnt/f > out 2>&1 && fail=1 |