|
Boost Users : |
Subject: Re: [Boost-users] [Test] How to treat memory leaks as errors?
From: OvermindDL1 (overminddl1_at_[hidden])
Date: 2009-09-26 22:43:10
On Sat, Sep 26, 2009 at 5:24 PM, Gennadiy Rozental <rogeeff_at_[hidden]> wrote:
> ÐаÑилий СÑаÑоÑÑин wrote:
>
>> So I expected that Boost.Test can use this function return code and
>> increase errors counter for leaks. If it cannot, this can be
>> improvement for the future.
>
>
> The problem is that this function is not invoked till after testing
> framework is done. in fact I do not invoke it at all. It is invoked by the
> CRT once program execution is completed.
>
> Running this function earlier most probably will produce huge number of
> false positives.
For note, the google memory tracker allows you to even partition
segments of your program off, letting you test for memory leaks just
from those sections and so forth, it is very powerful, as well as
multi-platform.
Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net