Skip to content

Commit

Permalink
[build][valgrind] Improve feedback when starting and on result
Browse files Browse the repository at this point in the history
  • Loading branch information
thoni56 committed May 15, 2021
1 parent bcd3368 commit f682560
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,13 @@ chunked: doc

.PHONY:valgrind
valgrind: build-it
@echo "Running under Valgrind..."
> valgrind.log
for lib in `ls build/tests/$(PREFIX)*_tests$(SUFFIX)` ; \
do \
LD_LIBRARY_PATH=build/src valgrind --leak-check=full build/tools/cgreen-runner $$lib >> valgrind.log 2>&1 ; \
done
grep " lost:" valgrind.log | grep -v " 0 bytes" | wc -l
grep -n " lost:" valgrind.log | grep -v " 0 bytes"



Expand Down

0 comments on commit f682560

Please sign in to comment.