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

look for valgrind errors [t:1496]

git-svn-id: file:///svn/toku/tokudb@14310 c7de825b-a66e-492c-adef-691d508d4ae1
parent a9649682
......@@ -40,14 +40,16 @@ check: $(TARGETS) $(RUNTARGETS);
ifeq ($(VGRIND),)
./$< $(SUMMARIZE_CMD)
else
$(VGRIND) --error-exitcode=1 --quiet --leak-check=full --log-file=$<.valgrind ./$<; \
$(VGRIND) --error-exitcode=1 --quiet --leak-check=full --log-file=$<.check.valgrind ./$<; \
if [ $$? = 0 ] ; then \
lines=`cat $<.valgrind | wc -l`; \
if [ $$lines -ne 0 ] ; then cat $<.valgrind; test 0 = 1; fi \
lines=`cat $<.check.valgrind | wc -l`; \
if [ $$lines -ne 0 ] ; then cat $<.check.valgrind; test 0 = 1; fi \
else \
test 0 = 1; \
fi \
$(SUMMARIZE_CMD)
endif
clean:
rm -rf $(TARGETS) *.valgrind pwrite4g.data testdir
rm -rf $(TARGETS) *.check.valgrind pwrite4g.data testdir
#include <stdio.h>
#include <assert.h>
int main(void) {
assert(0);
return 0;
}
#include <stdlib.h>
int main(void) {
(void) malloc(42);
return 0;
}
......@@ -166,6 +166,8 @@ else
if [ $$? -eq 0 ] ; then \
lines=`cat $<.check.valgrind | wc -l`; \
if [ $$lines -ne 0 ] ; then cat $<.check.valgrind; test 0 = 1; fi \
else \
test 0 = 1; \
fi \
$(SUMMARIZE_CMD)
endif
......
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