Last change
on this file 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:
1.6 KB
|
Line | |
---|
1 | echo "Warm up"
|
---|
2 | t=1
|
---|
3 | export t
|
---|
4 | i=1
|
---|
5 | while test $i != X; do
|
---|
6 | t=111111111111111111111111111111111111111111111111111111111111111111111110$i
|
---|
7 | t=111111111111111111111111111111111111111111111111111111111111111111111111$i true
|
---|
8 | t=111111111111111111111111111111111111111111111111111111111111111111111112$i /bin/true
|
---|
9 | t=111111111111111111111111111111111111111111111111111111111111111111111113$i exec 1>&1
|
---|
10 | i=1$i
|
---|
11 | if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
|
---|
12 | if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
|
---|
13 | if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
|
---|
14 | if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
|
---|
15 | done
|
---|
16 | unset t i
|
---|
17 |
|
---|
18 | memleak
|
---|
19 |
|
---|
20 | echo "Measuring memory leak..."
|
---|
21 | t=1
|
---|
22 | export t
|
---|
23 | i=1
|
---|
24 | while test $i != X; do
|
---|
25 | t=111111111111111111111111111111111111111111111111111111111111111111111110$i
|
---|
26 | t=111111111111111111111111111111111111111111111111111111111111111111111111$i true
|
---|
27 | t=111111111111111111111111111111111111111111111111111111111111111111111112$i /bin/true
|
---|
28 | t=111111111111111111111111111111111111111111111111111111111111111111111113$i exec 1>&1
|
---|
29 | i=1$i
|
---|
30 | if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
|
---|
31 | if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
|
---|
32 | if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
|
---|
33 | if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
|
---|
34 | done
|
---|
35 | unset t i
|
---|
36 |
|
---|
37 | memleak
|
---|
38 | kb=$?
|
---|
39 | if test $kb -le 4; then
|
---|
40 | echo Ok
|
---|
41 | else
|
---|
42 | echo "Bad: $kb kb (or more) leaked"
|
---|
43 | fi
|
---|
Note:
See
TracBrowser
for help on using the repository browser.