]> granicus.if.org Git - check/commit
check_mem_leaks: add new unit test for use against valgrind
authorbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 18 Dec 2013 21:37:09 +0000 (21:37 +0000)
committerbrarcher <brarcher@64e312b2-a51f-0410-8e61-82d0ca0eb02a>
Wed, 18 Dec 2013 21:37:09 +0000 (21:37 +0000)
commit8699473b65011b50766d536222329eeb3953f1cc
tree3de425387939c06742eb5184debab1eb69bcf275
parent03190c4bc8895e61b32b9e3c22cdcc38f99bd6f6
check_mem_leaks: add new unit test for use against valgrind

The purpose of this test is to be used by valgrind to check for
memory leaks. Each public API that check exports is used at
least once. Tests which use non-public API, or leak intentionally,
are not included here.

The test should pass when run, and is added to the list of tests to
run with "make check".

Actually using valgrind to check for memory leaks is outside of its
running with "make check". One still would need to manually run
valgrind.

git-svn-id: svn+ssh://svn.code.sf.net/p/check/code/trunk@901 64e312b2-a51f-0410-8e61-82d0ca0eb02a
tests/Makefile.am
tests/check_mem_leaks.c [new file with mode: 0644]