Commit 3d9efb54 authored by Tim-Philipp Müller's avatar Tim-Philipp Müller 🐠
Browse files

check.mak: fail valgrind checks only if we find == at the beginning of a line

Otherwise valgrind checks will fail if there's a "==" anywhere in the
output, which can easily happen when running with debug logging
enabled, for example.
parent 9aed1d7a
......@@ -57,7 +57,7 @@ LOOPS ?= 10
--show-possibly-lost=no \
--leak-resolution=high --num-callers=20 \
./$* 2>&1 | tee $$valgrind_log ; \
if grep "==" $$valgrind_log > /dev/null 2>&1; then \
if grep "^==" $$valgrind_log > /dev/null 2>&1; then \
rm $$valgrind_log; \
exit 1; \
fi ; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment