[v3] libstdc++/54296
Jonathan Wakely
jwakely.gcc@gmail.com
Wed Aug 29 22:08:00 GMT 2012
On 30/08/2012, Jonathan Wakely wrote:
> On 29/08/2012, François Dumont wrote:
>> You and others regularly ask to run tests with Valgrind. Is there
>> an easy way to run tests of the testsuite through Valgrind ?
>
> I don't think so.
>
What I sometimes do is copy specific test files to /dev/shm then
compile them with an installed trunk build, using different compiler
options and maybe modifying the file if needed. I use -I. So #include
<testsuite_hooks.h> finds /dev/shm/testsuite_hooks.h which contains:
#include <assert.h>
#define VERIFY assert
Then I can run the executables under gdb or valgrind.
It's quite manual, but if I know I'm trying to test a specific change
I only need to test one or two files that way, not the entire
testsuite.
More information about the Libstdc++
mailing list