* tests/misc/shred-passes: Set the $fail variable correctly.
The issue was noticed by Jim Meyering.
. $srcdir/test-lib.sh
+
# shred a single letter, zero length file which should result in
# 3 random passes and a single rename.
touch f || framework_failure
shred: f: pass 3/3 (random)...
shred: f: removing
shred: f: renamed to 0
-shred: f: removed" > exp
+shred: f: removed" > exp || framework_failure
+
+fail=0
-shred -v -u f 2>out
+shred -v -u f 2>out || fail=1
-compare exp out || fail
+compare exp out || fail=1
Exit $fail