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

Last change on this file since 2725 was 2725, checked in by Bruno Cornec, 13 years ago
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
  • 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.