3
0

bbunzip_test2.sh 296 B

12345678910
  1. #!/bin/sh
  2. # Leak test for gunzip. Watch top for growing process size.
  3. # Just using urandom will make gzip use method 0 (store) -
  4. # not good for test coverage!
  5. cat /dev/urandom \
  6. | while true; do read junk; echo "junk $RANDOM $junk"; done \
  7. | ../busybox gzip \
  8. | ../busybox gunzip -c >/dev/null