Drop unused condition check
[pcp.git] / qa / 198
blob519e70e54b272fc18454b441bc5ce2a4605f0573
1 #! /bin/sh
2 # PCP QA Test No. 198
3 # pv:934332 __pmdaMainPDU leaks __pmProfile objects
5 # Copyright (c) 2005 Silicon Graphics, Inc. All Rights Reserved.
8 seq=`basename $0`
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
12 . ./common.product
13 . ./common.filter
14 . ./common.check
16 status=0 # success is the default!
17 $sudo rm -rf $tmp.*
18 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
20 rm -f $seq.full
22 # real QA test starts here
24 for pmda in sample sampledso
26 echo "=== $pmda pmda ==="
27 echo "=== $pmda pmda ===" >>$seq.full
28 then=`pmprobe -v $pmda.datasize`
29 echo "then=$then" >>$seq.full
31 for i in 1 2 3 4
33 pmval -t 20msec -s 250 -i "${i}10,${i}11,${i}12,${i}13,${i}14,${i}15,${i}16,${i}17,${i}18,${i}19,${i}20,${i}21,${i}22,${i}23,${i}24,${i}25,${i}26,${i}27,${i}28,${i}29,${i}30,${i}31,${i}32,${i}33,${i}34,${i}35,${i}36,${i}37,${i}38,${i}39,${i}40,${i}41,${i}42,${i}43,${i}44,${i}45,${i}46,${i}47,${i}48,${i}49,${i}50,${i}51,${i}52,${i}53,${i}54,${i}55,${i}56,${i}57,${i}58,${i}59" $pmda.hordes.one >$tmp.$i &
34 done
36 wait
38 for i in 1 2 3 4
40 echo "thread $i: lines of output: `wc -l <$tmp.$i | sed -e 's/ *//g'`"
41 done
43 now=`pmprobe -v $pmda.datasize`
44 echo "now=$now" >>$seq.full
46 if [ "$then" != "$now" ]
47 then
48 echo "Arrgh ... memory leak"
49 echo "before: $then"
50 echo "after: $now"
51 status=1
54 cat $tmp.1 >>$seq.full
55 done
57 exit
59 # all done
60 exit