[U-Boot] [PATCH 16/23] test: dm: Support memory leak checking as a core feature

Simon Glass sjg at chromium.org
Fri Oct 24 05:53:17 CEST 2014


On 4 October 2014 11:29, Simon Glass <sjg at chromium.org> wrote:
> Check the state of the malloc() heap before each test is run, so that tests
> can verify that all is well at the end. Provide helper functions to mark
> the heap and to check that it returns to its initial state.
>
> Signed-off-by: Simon Glass <sjg at chromium.org>
> ---
>
>  include/dm/test.h   | 23 +++++++++++++++++++++++
>  test/dm/core.c      | 46 ++++++++++++++++++++++++++++++----------------
>  test/dm/test-main.c |  2 ++
>  3 files changed, 55 insertions(+), 16 deletions(-)

Applied to u-boot-dm/master


More information about the U-Boot mailing list