summaryrefslogtreecommitdiff
path: root/tests/rm/read-only.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/rm/read-only.sh')
-rwxr-xr-xtests/rm/read-only.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/rm/read-only.sh b/tests/rm/read-only.sh
index 377305cd..4375f1bc 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-2014 Free Software Foundation, Inc.
+# Copyright (C) 2009-2015 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
@@ -47,6 +47,6 @@ compare /dev/null out || fail=1
# However, trying to remove an existing file must fail.
rm -f mnt/f > out 2>&1 && fail=1
# with a diagnostic.
-test -s out || fail=1
+compare /dev/null out && fail=1
Exit $fail