summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh20
1 files changed, 13 insertions, 7 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index f699f34d6..970810301 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -591,15 +591,21 @@ cleanup
591if [ "x$USE_VALGRIND" != "x" ]; then 591if [ "x$USE_VALGRIND" != "x" ]; then
592 # wait for any running process to complete 592 # wait for any running process to complete
593 wait; sleep 1 593 wait; sleep 1
594 VG_ERROR=0 594 VG_RESULTS=$(find $OBJ/valgrind-out -type f -print)
595 for i in $OBJ/valgrind-out/*; do 595 VG_RESULT_COUNT=0
596 if grep "ERROR SUMMARY" $i >/dev/null && \ 596 VG_ERROR_COUNT=0
597 ! grep "ERROR SUMMARY: 0 errors" $i >/dev/null; then 597 for i in $VG_RESULTS; do
598 RESULT=1 598 if grep "ERROR SUMMARY" $i >/dev/null; then
599 verbose valgrind failure $i 599 VG_RESULT_COUNT=$(($VG_RESULT_COUNT + 1))
600 cat $i 600 if ! grep "ERROR SUMMARY: 0 errors" $i >/dev/null; then
601 VG_ERROR_COUNT=$(($VG_ERROR_COUNT + 1))
602 RESULT=1
603 verbose valgrind failure $i
604 cat $i
605 fi
601 fi 606 fi
602 done 607 done
608 verbose valgrind results $VG_RESULT_COUNT errors $VG_ERROR_COUNT
603fi 609fi
604 610
605if [ $RESULT -eq 0 ]; then 611if [ $RESULT -eq 0 ]; then