Re: [Cppunit-devel] Support For Memory Leak detection
Brought to you by:
blep
|
From: Baptiste L. <bl...@us...> - 2006-03-03 08:39:55
|
Bradbury, Doug wrote: > I'm running CPPUNIT on an embedded environment without any built in > memory leak detection. I've built a little tool (ala James > Grenning's blog > http://butunclebob.com/ArticleS.JamesGrenning.CppTestToolsMemoryLeakDetector) > to just keep a simple count of new and delete in static variables. > I've successfully added this to a couple of test fixtures. > > I'd like to integrate it in a place where it would be called before > and after each test is run and before and after all tests are run. > I've been into the CPPUnit code a little bit, but only to write my > own outputter. Does anyone have a suggestion as to where I could > integrate these calls? The best place I see for that is writing a TestListener. Have a look at examples/ClockerPlugIn as it seems similar in concept (used to time each test). Baptiste. --- Baptiste Lepilleur <bl...@us...> CppUnit maintainer OpenTest and CppUnit 2 developer. |