Most of the additional logic is in the build system and an execution-wrapper. The build system has an additional target to build a test program and instrument it for use with Purify. The wrapper runs the binary, requesting text-output from Purify (not using the GUI), and the output is diffed against an expected output.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
does anybody know, if it is possible to use cppunit or any extension to cppunit to detect memory leaks.
Thanks in advance for any answer,
Ulli
We use CppUnit together with Rational's Purify.
Most of the additional logic is in the build system and an execution-wrapper. The build system has an additional target to build a test program and instrument it for use with Purify. The wrapper runs the binary, requesting text-output from Purify (not using the GUI), and the output is diffed against an expected output.
Have a look at Valgrind if you're on linux:
http://devel-home.kde.org/~sewardj/