|
From: Elia P. <git...@gm...> - 2012-09-14 13:21:46
|
Hi to all
In some build system where I work, as @rpm5.org popt, I am running the
test suite using MALLOC_CHECK_ =3 always. A configure time I can
also choose to run the test suite with valgrind .
In this way i can execute sometime valgrind and the check due to MALLOC_CHECK_
simultaneously. I have never had any problems in doing this.
But the maintainer git asked me about this recently because he have
some dubt about
and so I would give a qualified answer. Anyway i am also interessed
for my projects.
Quoting it
"If you are using valgrind to run tests, is it sane to also enable
MALLOC_CHECK? If you were testing "cat", would it make sense to do:
$ MALLOC_CHECK_=3 valgrind cat README
Because we are not interested in testing how valgrind (not cat)
uses malloc, we may be better off running
$ valgrind cat README
without MALLOC_CHECK_; it will reduce the risk of MALLOC_CHECK_
potentially disturbing what we really want to check (i.e. cat) by
triggering for something whose problems we are not trying to see
(i.e. valgrind), no?"
http://www.spinics.net/lists/git/msg188833.html
I dod not find anything about this subject searching on the web.
Thank you very much in advance
|