]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
tests: avoid false failure in shred-passes.sh
authorPádraig Brady <P@draigBrady.com>
Tue, 19 Jan 2016 14:58:55 +0000 (14:58 +0000)
committerPádraig Brady <P@draigBrady.com>
Tue, 19 Jan 2016 16:08:59 +0000 (16:08 +0000)
* tests/misc/shred-passes.sh: Specify an exact amount to shred,
to avoid running out of simulated random data on file systems
with a large st_blksize like GPFS for example.
Reported by Assaf Gordon.

tests/misc/shred-passes.sh

index f237f5aca5409a5d44ff0916bb3e0ff7bc046e10..da0946ac0690bf89e84b39269ed6149e677fa118 100755 (executable)
@@ -76,7 +76,7 @@ shred: f: removing
 shred: f: renamed to 0
 shred: f: removed" > exp || framework_failure_
 
-shred -v -u -n20 --random-source=Us f 2>out || fail=1
+shred -v -u -n20 -s4096 --random-source=Us f 2>out || fail=1
 compare exp out || fail=1