[gst-devel] Re: [gst-cvs] thomasvs common: common/

Stefan Kost ensonic at hora-obscura.de
Mon Aug 22 00:53:09 CEST 2005


Hi Thomas,

unfortunately valgrind returns the return-code of the underlying app. I've had 
this disscussion a while ago with valgrind devs. I've asked for another valgrind 
commandline switch like '--valgrind-rc' that would tell valgrind to ignore the 
apps rc, but to return 1 for memleaks etc.. But they didn't liked it.

On the other hand we can use valgrind client requests in the tests.
1.  check if valgrind.h is found
2. include valgrind.h and memcheck.h
3. use VALGRIND_COUNT_ERRORS in start and end of unit-tests to see if there
    have been errors
4. use VALGRIND_DO_LEAK_CHECK and VALGRIND_COUNT_LEAKS for each unit-test

Stefan

> CVS Root:       /cvs/gstreamer
> Module:         common
> Changes by:     thomasvs
> Date:           Sun Aug 21 2005  03:30:00 PDT
> 
> Log message:
>          parse output of valgrind and check for definitely lost, and error
>           out; somehow I was led to believe valgrind returns non-zero for
>           leaks, but I can't make it do that, so let's parse
> 
> Modified files:
>     .               : ChangeLog check.mak
> 
> Links:
> http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/common/ChangeLog.diff?r1=1.39&r2=1.40
> http://freedesktop.org/cgi-bin/viewcvs.cgi/gstreamer/common/check.mak.diff?r1=1.2&r2=1.3
> 
> 
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference & EXPO
> September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
> Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
> Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
> _______________________________________________
> gstreamer-cvs mailing list
> gstreamer-cvs at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-cvs





More information about the gstreamer-devel mailing list