Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 405
blobf1ce8edfe73b8eac9c0d6b5449b064bfe5b605cb
1 #!/bin/sh
2 # PCP QA Test No. 405
3 # valgrind for pmUnpackEventRecords() and pmFreeEventResult()
5 # Copyright (c) 2010 Ken McDonell. 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 _check_valgrind
18 # can skip stdout from unpack, that's checked in 404
20 _filter()
22 $PCP_AWK_PROG '
23 BEGIN { skip = 1 }
24 /=== filtered / { skip = 0 }
25 skip == 0 { print }'
28 status=0 # success is the default!
29 $sudo rm -rf $tmp.* $seq.full
30 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
32 # real QA test starts here
33 _run_valgrind src/unpack | _filter
35 # success, all done
36 exit