From 9ebbdd0aa3c01a2e8f2d438fc3ad5984801a0a0b Mon Sep 17 00:00:00 2001 From: Jouni Malinen Date: Fri, 8 Mar 2019 16:52:52 +0200 Subject: [PATCH] tests: Report authentication server memory leaks more visible It was too easy to miss memory leaks in the hostapd-as-AS log. Signed-off-by: Jouni Malinen --- tests/hwsim/run-all.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/hwsim/run-all.sh b/tests/hwsim/run-all.sh index 3b91dc08c..495c9fa74 100755 --- a/tests/hwsim/run-all.sh +++ b/tests/hwsim/run-all.sh @@ -134,6 +134,11 @@ if [ ! -z "$VALGRIND" ] ; then fi fi +if tail -100 $LOGDIR/auth_serv | grep -q MEMLEAK; then + echo "Mark as failed due to authentication server memory leak" + errors=1 +fi + if [ ! -z "$CODECOV" ] ; then lcov -q --capture --directory ../../wpa_supplicant --output-file $LOGDIR/wpas_lcov.info genhtml -q $LOGDIR/wpas_lcov.info --output-directory $LOGDIR/wpas_lcov