From: Jim Meyering Date: Sun, 24 Jul 2011 09:43:47 +0000 (+0200) Subject: tests: mixed: correct size-enumeration logic X-Git-Tag: v1.5~19 X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=50a1a56051c77bd16f4a5c52f650c10ac8db57c2;p=debian%2Fgzip 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. --- 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"