Ignore:
Timestamp:
Feb 25, 2011, 9:26:54 PM (13 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.18.3 to avoid problems with the tar command which is now failing on recent versions with busybox 1.7.3
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.2.9/mindi-busybox/shell/hush_test/hush-z_slow/leak_var.tests

    r1765 r2725  
    1 pid=$$
    2 
    3 # Warm up
    4 unset t
    5 t=111111111111111111111111111111111111111111111111111111111111111111111111
    6 export t
    7 unset t
    8 t=111111111111111111111111111111111111111111111111111111111111111111111111
    9 export t
    10 unset t
    11 t=111111111111111111111111111111111111111111111111111111111111111111111111
    12 export t
    13 unset t
    14 t=111111111111111111111111111111111111111111111111111111111111111111111111
    15 export t
    16 unset t
    17 t=111111111111111111111111111111111111111111111111111111111111111111111111
    18 export t
    19 i=1
    20 if test $i = 1111111111111111111111111111111111111111111111; then i=2; fi
    21 beg=`ps -o pid,vsz | grep "^ *$pid "`
    22 
    231echo "Measuring memory leak..."
    24 beg=`ps -o pid,vsz | grep "^ *$pid "`
    252i=1
    263while test $i != X; do
     
    6037    if test $i = 111111111111111111111111111111111111111111111i; then i=j; fi
    6138    if test $i = 111111111111111111111111111111111111111111111j; then i=X; fi
     39    memleak
    6240done
    63 end=`ps -o pid,vsz | grep "^ *$pid "`
    64 
    65 if test "$beg" != "$end"; then
    66     echo "vsz grows: $beg -> $end"
     41memleak
     42kb=$?
     43if test $kb -le 4; then
     44    echo Ok
    6745else
    68     echo "vsz does not grow"
     46    echo "Bad: $kb kb (or more) leaked"
    6947fi
Note: See TracChangeset for help on using the changeset viewer.