new function ; Added valgrind mem check in leak tests; pattern CDATA tests
This commit is contained in:
parent
ebaedfd482
commit
fdf335fb2f
6 changed files with 68 additions and 14 deletions
|
|
@ -162,6 +162,12 @@ err(){
|
|||
# Test is previous test had valgrind errors if so quit
|
||||
checkvalgrind(){
|
||||
if [ -f $valgrindfile ]; then
|
||||
res=$(cat $valgrindfile | grep -e "Invalid" |awk '{print $4}' | grep -v '^0$')
|
||||
if [ -n "$res" ]; then
|
||||
>&2 cat $valgrindfile
|
||||
sudo rm -f $valgrindfile
|
||||
exit -1
|
||||
fi
|
||||
res=$(cat $valgrindfile | grep -e "reachable" -e "lost:"|awk '{print $4}' | grep -v '^0$')
|
||||
if [ -n "$res" ]; then
|
||||
>&2 cat $valgrindfile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue