6 t=111111111111111111111111111111111111111111111111111111111111111111111110$i
7 t=111111111111111111111111111111111111111111111111111111111111111111111111$i true
8 t=111111111111111111111111111111111111111111111111111111111111111111111112$i /bin/true
9 t=111111111111111111111111111111111111111111111111111111111111111111111113$i exec 1>&1
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
20 echo "Measuring memory leak..."
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
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
39 if test $kb -le 4; then
42 echo "Bad: $kb kb (or more) leaked"