Commit 85d69f7c authored by Daniel Verkamp's avatar Daniel Verkamp Committed by Gerrit Code Review
Browse files

autotest: enforce Valgrind checking for unit tests



If any memory is leaked or other errors occur, valgrind will now exit
with an error code and fail the tests.

Change-Id: I6c65cae17dcd21eb97d70bd82df828eaa0f8f109
Signed-off-by: default avatarDaniel Verkamp <daniel.verkamp@intel.com>
parent c162dd0e
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -33,8 +33,7 @@ if [ -z "$output_dir" ]; then
fi

if hash valgrind &> /dev/null; then
	# TODO: add --error-exitcode=2 when all Valgrind warnings are fixed
	valgrind='valgrind --leak-check=full'
	valgrind='valgrind --leak-check=full --error-exitcode=2'
else
	valgrind=''
fi