[openssh-commits] [openssh] 01/01: Fail tests if Valgrind enabled and reports errors.

git+noreply at mindrot.org git+noreply at mindrot.org
Thu Jul 18 11:17:27 AEST 2019


This is an automated email from the git hooks/post-receive script.

dtucker pushed a commit to branch master
in repository openssh.

commit a192021fedead23c375077f92346336d531f8cad
Author: Darren Tucker <dtucker at dtucker.net>
Date:   Thu Jul 18 11:09:38 2019 +1000

    Fail tests if Valgrind enabled and reports errors.
    
    Also dump the failing valgrind report to stdout (not the cleanest
    solution, but better than nothing).
---
 regress/test-exec.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/regress/test-exec.sh b/regress/test-exec.sh
index a0bff311..f699f34d 100644
--- a/regress/test-exec.sh
+++ b/regress/test-exec.sh
@@ -587,6 +587,21 @@ start_sshd ()
 
 # kill sshd
 cleanup
+
+if [ "x$USE_VALGRIND" != "x" ]; then
+	# wait for any running process to complete
+	wait; sleep 1
+	VG_ERROR=0
+	for i in $OBJ/valgrind-out/*; do
+		if grep "ERROR SUMMARY" $i >/dev/null && \
+		    ! grep "ERROR SUMMARY: 0 errors" $i >/dev/null; then
+			RESULT=1
+			verbose valgrind failure $i
+			cat $i
+		fi
+	done
+fi
+
 if [ $RESULT -eq 0 ]; then
 	verbose ok $tid
 else

-- 
To stop receiving notification emails like this one, please contact
djm at mindrot.org.


More information about the openssh-commits mailing list