Nice thing.

AFAIK there are no way to do this with standard POSIX methods. The
Boehm-Demers-Weiser conservative garbage collector can be used as leak
detector. I always use valgrind on linux and bounds checker for
windows on the unit tests.

But this may be a really useful feature, even if it is ifdefed away on
posix builds.

Sean

On Mon, Jan 18, 2010 at 12:48 AM, Clark Gaebel <cg.wowus...@gmail.com> wrote:
> So I've got a patch lined up (my weekend project) which detects memory
> leaks in tests.
>
> It's basically using:
> http://msdn.microsoft.com/en-us/library/k4htzb06.aspx and
> http://msdn.microsoft.com/en-us/library/h3z85t43.aspx
>
> The output is:
> memleak.cpp(10): error: Failure in LeakDetection: Memory Leak Detected!
>
> As far as I know though, this is Microsoft/Intel only. Is there a way to
> do this with good ole' fashioned POSIX and maybe embedded systems? NOTE:
> This will not break non-Microsoft/Intel builds. It's carefully #ifdef'd.
>
> ------------------------------------------------------------------------------
> Throughout its 18-year history, RSA Conference consistently attracts the
> world's best and brightest in the field, creating opportunities for Conference
> attendees to learn about information security's most important issues through
> interactions with peers, luminaries and emerging and established companies.
> http://p.sf.net/sfu/rsaconf-dev2dev
> _______________________________________________
> unittest-cpp-devel mailing list
> unittest-cpp-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel
>

------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
unittest-cpp-devel mailing list
unittest-cpp-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/unittest-cpp-devel

Reply via email to