blob: 26cbb28a48a8974b4f241845ff1231963cd8fb17 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
echo "Warm up"
i=1
while test $i != 99; do
: <<HERE
Hello $i `echo builtin_$i`
HERE
: $((i++))
done
memleak
echo "Measuring memory leak..."
i=1
while test $i != 99; do
: <<HERE
Hello $i `echo builtin_$i`
HERE
: $((i++))
done
i=1
while test $i != 99; do
: <<HERE
Hello $i `echo builtin_$i`
HERE
: $((i++))
done
memleak
kb=$?
if test $kb -le 4; then
echo Ok #$kb
else
echo "Bad: $kb kb (or more) leaked"
fi
|