mirror of
https://github.com/topjohnwu/ndk-busybox.git
synced 2024-11-24 20:29:55 +00:00
11 lines
296 B
Bash
11 lines
296 B
Bash
#!/bin/sh
|
|
# Leak test for gunzip. Watch top for growing process size.
|
|
|
|
# Just using urandom will make gzip use method 0 (store) -
|
|
# not good for test coverage!
|
|
|
|
cat /dev/urandom \
|
|
| while true; do read junk; echo "junk $RANDOM $junk"; done \
|
|
| ../busybox gzip \
|
|
| ../busybox gunzip -c >/dev/null
|