summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/shred/remove5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/shred/remove b/tests/shred/remove
index 4664ca4a6..8f4be671c 100755
--- a/tests/shred/remove
+++ b/tests/shred/remove
@@ -21,9 +21,10 @@ fi
fail=0
# This would infloop with the version from fileutils-4.0k.
-shred -u $tmp/file
+# Expect it to fail.
+shred -u $tmp/file > /dev/null 2>&1 && fail=1
-cd ..
+chmod u+w $tmp
rm -rf $tmp
exit $fail