Last change
on this file since 3624 was 3320, checked in by Bruno Cornec, 10 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:
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.