mirror of
https://github.com/sheumann/hush.git
synced 2024-12-22 14:30:31 +00:00
42 lines
672 B
Plaintext
Executable File
42 lines
672 B
Plaintext
Executable File
# Was seen leaking on NOMMU build
|
|
|
|
echo "Warm up"
|
|
i=1; t=1; export t
|
|
while test $i != 400; do
|
|
t=valueA_$i true
|
|
: $((i++))
|
|
done
|
|
|
|
memleak
|
|
echo "Measuring memory leak..."
|
|
|
|
# Please copy the entire block from above verbatim
|
|
i=1; t=1; export t
|
|
while test $i != 400; do
|
|
t=valueA_$i true
|
|
: $((i++))
|
|
done
|
|
i=1; t=1; export t
|
|
while test $i != 400; do
|
|
t=valueA_$i true
|
|
: $((i++))
|
|
done
|
|
i=1; t=1; export t
|
|
while test $i != 400; do
|
|
t=valueA_$i true
|
|
: $((i++))
|
|
done
|
|
i=1; t=1; export t
|
|
while test $i != 400; do
|
|
t=valueA_$i true
|
|
: $((i++))
|
|
done
|
|
|
|
memleak
|
|
kb=$?
|
|
if test $kb -le 4; then
|
|
echo Ok #$kb
|
|
else
|
|
echo "Bad: $kb kb (or more) leaked"
|
|
fi
|