7 t=111111111111111111111111111111111111111111111111111111111111111111111110$i
8 t=111111111111111111111111111111111111111111111111111111111111111111111111$i true
9 t=111111111111111111111111111111111111111111111111111111111111111111111112$i /bin/true
10 t=111111111111111111111111111111111111111111111111111111111111111111111113$i exec 1>&1
12 if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
13 if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
14 if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
15 if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
20 echo "Measuring memory leak..."
22 while test $i != X; do
23 t=111111111111111111111111111111111111111111111111111111111111111111111110$i
24 t=111111111111111111111111111111111111111111111111111111111111111111111111$i true
25 t=111111111111111111111111111111111111111111111111111111111111111111111112$i /bin/true
26 t=111111111111111111111111111111111111111111111111111111111111111111111113$i exec 1>&1
28 if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
29 if test $i = 1111111111111111111111111111111111111111111112; then i=3; fi
30 if test $i = 1111111111111111111111111111111111111111111113; then i=4; fi
31 if test $i = 1111111111111111111111111111111111111111111114; then i=X; fi
36 if test $kb -le 4; then
39 echo "Bad: $kb kb (or more) leaked"