]> git.dujemihanovic.xyz Git - u-boot.git/commit
test: dm: Support memory leak checking as a core feature
authorSimon Glass <sjg@chromium.org>
Sat, 4 Oct 2014 17:29:50 +0000 (11:29 -0600)
committerSimon Glass <sjg@chromium.org>
Fri, 24 Oct 2014 01:29:53 +0000 (19:29 -0600)
commit756ac0bb1526c8c661ad3ff673cd17c7602ab46e
tree0c72b1317e1d9be6f0ab0ee353e8c9ac878e5037
parentd44f597b12b8f8099c3c52c3eb09540966cafe79
test: dm: Support memory leak checking as a core feature

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@chromium.org>
include/dm/test.h
test/dm/core.c
test/dm/test-main.c