mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-31 01:35:11 +02:00
Fail tests if Valgrind enabled and reports errors.
Also dump the failing valgrind report to stdout (not the cleanest solution, but better than nothing).
This commit is contained in:
parent
d1c491ecb9
commit
a192021fed
@ -587,6 +587,21 @@ start_sshd ()
|
|||||||
|
|
||||||
# kill sshd
|
# kill sshd
|
||||||
cleanup
|
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
|
if [ $RESULT -eq 0 ]; then
|
||||||
verbose ok $tid
|
verbose ok $tid
|
||||||
else
|
else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user