summaryrefslogtreecommitdiff
path: root/tests/local.mk
diff options
context:
space:
mode:
authorJim Meyering <meyering@fb.com>2014-05-10 12:36:16 -0700
committerJim Meyering <meyering@fb.com>2014-05-10 12:36:16 -0700
commitd7cfcbef7eb2cd12ac83e5c1c123de2015adbef9 (patch)
treeb3c6bf4e193a230a32986e973caf56116e516c95 /tests/local.mk
parenta7603fa6527cf53a22d5072acb454f65303a3874 (diff)
downloadcoreutils-d7cfcbef7eb2cd12ac83e5c1c123de2015adbef9.tar.xz
shred: don't infloop upon negative size
* src/shred.c (main): With the preceding change, shred -s-2 FILE would write 64KB blocks forever -- or until disk full. This change makes shred reject a negative size. * tests/misc/shred-negative.sh: New file. * tests/local.mk (all_tests): Add it.
Diffstat (limited to 'tests/local.mk')
-rw-r--r--tests/local.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/local.mk b/tests/local.mk
index 5286bfb34..cd7da5b2f 100644
--- a/tests/local.mk
+++ b/tests/local.mk
@@ -313,6 +313,7 @@ all_tests = \
tests/misc/sha384sum.pl \
tests/misc/sha512sum.pl \
tests/misc/shred-exact.sh \
+ tests/misc/shred-negative.sh \
tests/misc/shred-passes.sh \
tests/misc/shred-remove.sh \
tests/misc/shuf.sh \