Magellan Linux

Annotation of /trunk/mkinitrd-magellan/busybox/shell/hush_test/hush-z_slow/leak_heredoc1.tests

Parent Directory Parent Directory | Revision Log Revision Log


Revision 984 - (hide annotations) (download)
Sun May 30 11:32:42 2010 UTC (14 years ago) by niro
File size: 440 byte(s)
-updated to busybox-1.16.1 and enabled blkid/uuid support in default config
1 niro 984 echo "Warm up"
2     i=1
3     while test $i != 99; do
4     : <<HERE
5     Hello $i `echo builtin_$i`
6     HERE
7     : $((i++))
8     done
9    
10     memleak
11    
12     echo "Measuring memory leak..."
13     i=1
14     while test $i != 99; do
15     : <<HERE
16     Hello $i `echo builtin_$i`
17     HERE
18     : $((i++))
19     done
20     i=1
21     while test $i != 99; do
22     : <<HERE
23     Hello $i `echo builtin_$i`
24     HERE
25     : $((i++))
26     done
27    
28     memleak
29     kb=$?
30     if test $kb -le 4; then
31     echo Ok #$kb
32     else
33     echo "Bad: $kb kb (or more) leaked"
34     fi

Properties

Name Value
svn:executable *