IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 4, 2006, 9:53:08 AM (20 years ago)
Author:
eugene
Message:

added and updated tests (esp memory checks)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/cmd.basic/test/fprintf.sh

    r6265 r9197  
    55 test3
    66 test4
     7 test5
    78end
    89
     
    5859 end
    5960end
     61
     62# check for memory leaks
     63macro test5
     64
     65 list word -x "ps -p $PID -o rss"
     66 $startmem = $word:1
     67
     68 output /dev/null
     69 for i 0 1000
     70   fprintf "test %10s" foobar
     71 end
     72 output stdout
     73
     74 list word -x "ps -p $PID -o rss"
     75 $endmem = $word:1
     76
     77 if ("$endmem - $startmem" < 10)
     78   $PASS = 1
     79 else
     80   $PASS = 0
     81 end
     82end
Note: See TracChangeset for help on using the changeset viewer.