3 # Increase coverage and check malloc failure for err.c in libpcp
5 # Copyright (c) 2011 Ken McDonell. All Rights Reserved.
9 echo "QA output created by $seq"
11 # get standard environment, filters and checks
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
29 export PM_FAULT_CONTROL
=$tmp.control
30 export LD_PRELOAD
=$PCP_LIB_DIR/libpcp_fault.so
31 cat >$tmp.control
<<End-of-File
34 src
/err
-Dfault 12345 12344