3 # dbpmda can trigger malloc badness in the libpcp pmns routines
5 # Copyright (c) 2016 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
16 status
=1 # failure is the default!
17 $sudo rm -rf $tmp $tmp.
* $seq.full
18 trap "cd $here; rm -rf $tmp $tmp.*; exit \$status" 0 1 2 3 15
20 $sudo rm -f /tmp
/no
/such
/file
25 -e '/pmResult/s/ .* numpmid/ ... numpmid/' \
26 -e '/value/s/1000000 .*/1000000 .../' \
27 -e "s;$PCP_PMDAS_DIR;\$PCP_PMDAS_DIR;" \
28 -e "s/\\.$DSO_SUFFIX/.\$DSO_SUFFIX/" \
33 cat <<End-of-File >$tmp.pmns
35 empty 29:0:13 /* really pmid for sample.long.million */
39 pipepmda
=$PCP_PMDAS_DIR/sample
/pmdasample
40 [ ! -f $pipepmda ] && echo "FATAL ERROR Could not find \"$pipepmda\"" && exit 1
42 # real QA test starts here
43 $sudo TERM
=ansi dbpmda
-ie <<End-of-File 2>&1 | _filter
44 open pipe $pipepmda -d 29
45 fetch sample.long.million
46 # pmns from non-existent file
47 namespace /tmp/no/such/file
48 fetch sample.long.million
51 fetch sample.long.million
54 fetch sample.long.million