summaryrefslogtreecommitdiff
path: root/regress/test-exec.sh
diff options
context:
space:
mode:
authorDarren Tucker <dtucker@dtucker.net>2019-07-23 08:11:22 +1000
committerDarren Tucker <dtucker@dtucker.net>2019-07-23 08:11:22 +1000
commit2e6035b900cc9d7432d95084e03993d1b426f812 (patch)
tree622d81c1136b93926b4985503baeac5c26a9b817 /regress/test-exec.sh
parente82c9bb9ffa65725cc2e03ea81cb79ce3387f66b (diff)
Rename valgrind "errors" to "failures".
When valgrind is enabled, test-exec.sh counts the number of invocations that valgrind detects failures in, not the total number of errors detected. This makes the name to be more accurate.
Diffstat (limited to 'regress/test-exec.sh')
-rw-r--r--regress/test-exec.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index 2e1edd516..508b93284 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -597,12 +597,12 @@ if [ "x$USE_VALGRIND" != "x" ]; then
597 wait; sleep 1 597 wait; sleep 1
598 VG_RESULTS=$(find $OBJ/valgrind-out -type f -print) 598 VG_RESULTS=$(find $OBJ/valgrind-out -type f -print)
599 VG_RESULT_COUNT=0 599 VG_RESULT_COUNT=0
600 VG_ERROR_COUNT=0 600 VG_FAIL_COUNT=0
601 for i in $VG_RESULTS; do 601 for i in $VG_RESULTS; do
602 if grep "ERROR SUMMARY" $i >/dev/null; then 602 if grep "ERROR SUMMARY" $i >/dev/null; then
603 VG_RESULT_COUNT=$(($VG_RESULT_COUNT + 1)) 603 VG_RESULT_COUNT=$(($VG_RESULT_COUNT + 1))
604 if ! grep "ERROR SUMMARY: 0 errors" $i >/dev/null; then 604 if ! grep "ERROR SUMMARY: 0 errors" $i >/dev/null; then
605 VG_ERROR_COUNT=$(($VG_ERROR_COUNT + 1)) 605 VG_FAIL_COUNT=$(($VG_FAIL_COUNT + 1))
606 RESULT=1 606 RESULT=1
607 verbose valgrind failure $i 607 verbose valgrind failure $i
608 cat $i 608 cat $i
@@ -612,7 +612,7 @@ if [ "x$USE_VALGRIND" != "x" ]; then
612 if [ x"$VG_SKIP" != "x" ]; then 612 if [ x"$VG_SKIP" != "x" ]; then
613 verbose valgrind skipped 613 verbose valgrind skipped
614 else 614 else
615 verbose valgrind results $VG_RESULT_COUNT errors $VG_ERROR_COUNT 615 verbose valgrind results $VG_RESULT_COUNT failures $VG_FAIL_COUNT
616 fi 616 fi
617fi 617fi
618 618