source:
MondoRescue/tags/3.0.0/mindi-busybox/shell/hush_test/hush-z_slow/leak_heredoc1.tests@
3491
Last change on this file since 3491 was 2725, checked in by , 14 years ago | |
---|---|
|
|
File size: 440 bytes |
Line | |
---|---|
1 | 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 |
Note:
See TracBrowser
for help on using the repository browser.