Commit fc1bfd66 authored by Rich Prohaska's avatar Rich Prohaska Committed by Yoni Fogel

check for memory leaks in the portability tests. addresses #1496

git-svn-id: file:///svn/toku/tokudb@9939 c7de825b-a66e-492c-adef-691d508d4ae1
parent 19f1dbb0
......@@ -17,7 +17,15 @@ test-gettime: test-gettime.c
check: $(TARGETS) $(RUNTARGETS)
%.tdbrun: %
$(VGRIND) ./$<
ifeq ($(VGRIND),)
./$<
else
$(VGRIND) --log-file=$<.valgrind ./$<; \
if [ $$? = 0 ] ; then \
grep "LEAK SUMMARY" $<.valgrind >/dev/null 2>&1; \
if [ $$? = 0 ] ; then cat $<.valgrind; exit 1; fi \
fi
endif
clean:
rm -rf $(TARGETS)
\ No newline at end of file
rm -rf $(TARGETS) *.valgrind
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