hush: add a leak test which currently fails
This commit is contained in:
parent
c73b70c701
commit
08daf564ae
3
shell/hush_test/hush-z_slow/leak_var3.right
Normal file
3
shell/hush_test/hush-z_slow/leak_var3.right
Normal file
@ -0,0 +1,3 @@
|
||||
Warm up
|
||||
Measuring memory leak...
|
||||
Ok
|
41
shell/hush_test/hush-z_slow/leak_var3.tests
Executable file
41
shell/hush_test/hush-z_slow/leak_var3.tests
Executable file
@ -0,0 +1,41 @@
|
||||
# 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
|
Loading…
Reference in New Issue
Block a user