]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
tests: Report authentication server memory leaks more visible
authorJouni Malinen <jouni@codeaurora.org>
Fri, 8 Mar 2019 14:52:52 +0000 (16:52 +0200)
committerJouni Malinen <j@w1.fi>
Fri, 8 Mar 2019 14:52:52 +0000 (16:52 +0200)
It was too easy to miss memory leaks in the hostapd-as-AS log.

Signed-off-by: Jouni Malinen <jouni@codeaurora.org>
tests/hwsim/run-all.sh

index 3b91dc08c2497689ee524d63f1c7b84973d365a3..495c9fa744b87dd329556da4d6d841e3bff6b6d1 100755 (executable)
@@ -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