qa: update 660 to generate index.html, fixing pcp-testsuite runs
[pcp.git] / qa / 478
blobe071931c63e16b0c80f6f13739e546729e6934c3
1 #!/bin/sh
2 # PCP QA Test No. 478
3 # Increase coverage and check malloc failure for err.c in libpcp
5 # Copyright (c) 2011 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 src/check_fault_injection >/dev/null 2>&1 || \
17 _notrun "libpcp not built with fault injection enabled"
18 [ $PCP_PLATFORM != solaris ] || \
19 _notrun "fault injection point in libpcp/err.c not executed for Solaris"
21 status=0 # success is the default!
22 $sudo rm -rf $tmp.* $seq.full
23 trap "rm -f $tmp.*; exit \$status" 0 1 2 3 15
25 # real QA test starts here
26 src/err 0
28 echo
29 export PM_FAULT_CONTROL=$tmp.control
30 export LD_PRELOAD=$PCP_LIB_DIR/libpcp_fault.so
31 cat >$tmp.control <<End-of-File
32 libpcp/err.c:1
33 End-of-File
34 src/err -Dfault 12345 12344
36 # success, all done
37 exit