Testing: Fix an error in the GNC_TEST_ADD macro that

ate user data for the fixture.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20927 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
John Ralls 2011-07-14 17:06:04 +00:00
parent 5f0fe0115a
commit 4dc91e4441

View File

@ -61,7 +61,7 @@ Otherwise, only failures are printed out.
#define GNC_TEST_ADD( suite, path, fixture, data, setup, test, teardown )\
{\
gchar *testpath = g_strdup_printf( "%s/%s", suite, path );\
g_test_add( testpath, fixture, NULL, setup, test, teardown );\
g_test_add( testpath, fixture, data, setup, test, teardown );\
g_free( testpath );\
}