mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-01-02 04:10:17 +01:00
tests: fail valgrind script if log file is non-empty
This commit is contained in:
parent
e7356ef0a6
commit
cfa4560073
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