source:
MondoRescue/tags/3.2.1/mindi-busybox/shell/hush_test/hush-z_slow/leak_heredoc1.tests@
3869
Last change on this file since 3869 was 2725, checked in by , 13 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.