|
From: Darren C. <da...@dc...> - 2004-01-27 00:30:21
|
I'd like to use valgrind with some unit tests, which are structured such that any output is a test failure. I don't want suppressed blocks to count as a test failure, but unfortunately they cause output [1]. I tried with just -q and without --leak-check=yes, which does give no output, but there is also no output on real problems, so that is not an option. Is there a commandline option to do this? Or does anyone already have a bash script or similar to filter output? Thanks, Darren [1]: $ valgrind -q --leak-check=yes ./9.do_nothing_1.exe ==1548== searching for pointers to 3 not-freed blocks. ==1548== checked 4575400 bytes. ==1548== ==1548== LEAK SUMMARY: ==1548== definitely lost: 0 bytes in 0 blocks. ==1548== possibly lost: 0 bytes in 0 blocks. ==1548== still reachable: 0 bytes in 0 blocks. ==1548== suppressed: 4448 bytes in 3 blocks. ==1548== |