summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2011-07-24 11:43:47 +0200
committerJim Meyering <meyering@redhat.com>2011-11-02 18:50:57 +0100
commit50a1a56051c77bd16f4a5c52f650c10ac8db57c2 (patch)
tree2b2af84bc0fb8346f47ebc9ff3890f4161c87fd3
parentdd9cda0858dbe50fa638db267bdf63c77afc2c75 (diff)
downloadgzip-50a1a56051c77bd16f4a5c52f650c10ac8db57c2.tar.gz
tests: mixed: correct size-enumeration logic
* tests/mixed (sizes): Fix misplaced "&& break" that made us test only with a size of 0, rather than all sizes in 0..64.
-rw-r--r--tests/mixed2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/mixed b/tests/mixed
index bd561e8..22913df 100644
--- a/tests/mixed
+++ b/tests/mixed
@@ -48,7 +48,7 @@ in_str=0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-+=%
for i in 0 1 2 3 4 5 6 7 8 9 a; do in_str="$in_str$in_str" ;done
# Start with some small sizes. $(seq 64)
-sizes=$(i=0; while :; do echo $i; test $i = 64; i=$(expr $i + 1) && break; done)
+sizes=$(i=0; while :; do echo $i; test $i = 64 && break; i=$(expr $i + 1); done)
# gzip's internal buffer size is 32KiB + 64 bytes:
sizes="$sizes 32831 32832 32833"