r22114 - gnucash/trunk/src/test-core - Testing: Provide a test_destroy function/macro combination.
John Ralls
jralls at code.gnucash.org
Sat Mar 24 18:20:20 EDT 2012
Author: jralls
Date: 2012-03-24 18:20:19 -0400 (Sat, 24 Mar 2012)
New Revision: 22114
Trac: http://svn.gnucash.org/trac/changeset/22114
Modified:
gnucash/trunk/src/test-core/test-stuff.c
gnucash/trunk/src/test-core/test-stuff.h
Log:
Testing: Provide a test_destroy function/macro combination.
Works on GObjects. Asserts if the object isn't a GObject (which may be the case if it has already been finalized) or if the object's finalize method isn't called (indicating a leak).
More information about the gnucash-patches
mailing list