source: MondoRescue/branches/2.2.9/mindi-busybox/shell/hush_test/hush-z_slow/leak_var3.tests@ 3320

Last change on this file since 3320 was 3320, checked in by Bruno Cornec, 9 years ago
  • Re-add (thanks git BTW) the 2.2.9 branch which had been destroyed in the move to 3.0
  • Property svn:executable set to *
File size: 672 bytes
Line 
1# Was seen leaking on NOMMU build
2
3echo "Warm up"
4i=1; t=1; export t
5while test $i != 400; do
6 t=valueA_$i true
7 : $((i++))
8done
9
10memleak
11echo "Measuring memory leak..."
12
13# Please copy the entire block from above verbatim
14i=1; t=1; export t
15while test $i != 400; do
16 t=valueA_$i true
17 : $((i++))
18done
19i=1; t=1; export t
20while test $i != 400; do
21 t=valueA_$i true
22 : $((i++))
23done
24i=1; t=1; export t
25while test $i != 400; do
26 t=valueA_$i true
27 : $((i++))
28done
29i=1; t=1; export t
30while test $i != 400; do
31 t=valueA_$i true
32 : $((i++))
33done
34
35memleak
36kb=$?
37if test $kb -le 4; then
38 echo Ok #$kb
39else
40 echo "Bad: $kb kb (or more) leaked"
41fi
Note: See TracBrowser for help on using the repository browser.