mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-07 03:10:16 +01:00
tests: fail valgrind script if log file is non-empty
(cherry picked from commit cfa4560073)
This commit is contained in:
parent
26406d0868
commit
fed9958ae4
1 changed files with 5 additions and 0 deletions
|
|
@ -27,6 +27,11 @@ $LIBTOOL --mode=execute "$VALGRIND" \
|
|||
"$TEST"
|
||||
RESULT=$?
|
||||
|
||||
if [ $RESULT -eq 0 -a "$(wc -c "$LOGFILE" | awk '{print$1}')" -ne 0 ]; then
|
||||
echo "valgrind succeeded, but log is not empty: $LOGFILE"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
if [ $RESULT -ne 0 -a $RESULT -ne 77 ]; then
|
||||
echo "Don't forget to check the valgrind log at '`realpath $LOGFILE`'." >&2
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue