Merge branch 'master' of git://git.pcp.io/pcp into qt
[pcp.git] / qa / 071
bloba3462ab5a1292e288ff12e075f5644d347d1bc62
1 #! /bin/sh
2 # PCP QA Test No. 071
3 # used to cause core dump when using libpcp_lite ... problem moved
4 # slightly when libpcp_lite replaced by PM_CONTEXT_LOCAL
6 # Copyright (c) 1995-2002 Silicon Graphics, Inc. All Rights Reserved.
9 seq=`basename $0`
10 echo "QA output created by $seq"
12 # get standard filters
13 . ./common.product
14 . ./common.filter
16 trap "rm -f $tmp.*; exit" 0 1 2 3 15
18 # real QA test starts here
19 cd src
20 $sudo rm -f core*
22 for args in "" "-L" "-h localhost" "-a ../tmparch/foo"
24 echo
25 echo "sudo ./pcp_lite_crash $args ..."
26 eval $sudo ./pcp_lite_crash $args >$tmp.out 2>&1
27 s=$?
29 sed -e '/using .* kmem interface/d' $tmp.out \
30 | _filter_pmcd_log
32 if [ "`echo core*`" != "core*" ]
33 then
34 echo "In qa/src, running pcp_lite_crash created a core dump"
35 echo until this is fixed, my pid = $$
36 echo exit status is $s
37 exit $s
39 done
41 exit 0