Patch to allow make check to use valgrind

J.Underwood J.Underwood@open.ac.uk
Sat Aug 27 22:32:00 GMT 2005


Hi,

Attached is a patch which allows all of the tests to be ran with valgrind in order to check for memory problems. 

This was generated against today's CVS repository.

Basically, if you do

./configure --enable-valgrind-testing 

then, when you run make check valgrind is invoked.

The bad news: valgrind is reporting a fair few problems. I haven't had time to go through them all yet.

Best wishes,
Jonathan.

ps. Actually, even without that argument passed to configure, this patch runs the test programs with
libtool --mode=execute, which is probably the correct thing to do. It probably means we can get rid of all the  test_LDADD hacks in the Makefile.am files, but at the moment I haven't tried this.


-------------- next part --------------
A non-text attachment was scrubbed...
Name: make-check-use-valgrind.patch
Type: text/x-patch
Size: 27592 bytes
Desc: make-check-use-valgrind.patch
URL: <http://sourceware.org/pipermail/gsl-discuss/attachments/20050827/aaa85ddb/attachment.bin>


More information about the Gsl-discuss mailing list