tests: mixed: correct size-enumeration logic
authorJim Meyering <meyering@redhat.com>
Sun, 24 Jul 2011 09:43:47 +0000 (11:43 +0200)
committerJim Meyering <meyering@redhat.com>
Wed, 2 Nov 2011 17:50:57 +0000 (18:50 +0100)
* tests/mixed (sizes): Fix misplaced "&& break" that made us test
only with a size of 0, rather than all sizes in 0..64.

tests/mixed

index bd561e8d0f661f6acdcc507baa49a4ce2474c961..22913df5781fff32b1a7795d1a8ffcf941c093b8 100644 (file)
@@ -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"