diff --git a/tests/script/sh/checkValgrind.sh b/tests/script/sh/checkValgrind.sh index 075268c53c1dd48fd6a9c0322ec99518115249c9..fdbac45ea672ee7802dd4ceff9718fac512d2ca9 100755 --- a/tests/script/sh/checkValgrind.sh +++ b/tests/script/sh/checkValgrind.sh @@ -40,6 +40,9 @@ still_reachable=`cat ${LOG_DIR}/valgrind-taosd-*.log | grep "still reachable in" definitely_lost=`cat ${LOG_DIR}/valgrind-taosd-*.log | grep "definitely lost in" | wc -l` indirectly_lost=`cat ${LOG_DIR}/valgrind-taosd-*.log | grep "indirectly lost in " | wc -l` possibly_lost=`cat ${LOG_DIR}/valgrind-taosd-*.log | grep "possibly lost in " | wc -l` +invalid_read=`cat ${LOG_DIR}/valgrind-taosd-*.log | grep "Invalid read of " | wc -l` +invalid_write=`cat ${LOG_DIR}/valgrind-taosd-*.log | grep "Invalid write of " | wc -l` +invalid_free=`cat ${LOG_DIR}/valgrind-taosd-*.log | grep "Invalid free() " | wc -l` if [ $DETAIL -eq 1 ]; then echo error_summary: $error_summary @@ -47,7 +50,10 @@ if [ $DETAIL -eq 1 ]; then echo definitely_lost: $definitely_lost echo indirectly_lost: $indirectly_lost echo possibly_lost: $possibly_lost + echo invalid_read: $invalid_read + echo invalid_write: $invalid_write + echo invalid_free: $invalid_free fi -let "errors=$still_reachable+$error_summary+$definitely_lost+$indirectly_lost+$possibly_lost" +let "errors=$error_summary+$still_reachable+$definitely_lost+$indirectly_lost+$possibly_lost+$invalid_read+$invalid_write+$invalid_free" echo $errors