Fix test (init) failure.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13273 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Joshua Sled 2006-02-16 03:34:59 +00:00
parent cdf1e2e316
commit 88f70b0508
3 changed files with 17 additions and 7 deletions

View File

@ -1,3 +1,9 @@
2006-02-15 Joshua Sled <jsled@asynchronous.org>
* src/backend/file/test/test-load-xml2.c (main): Initialize
g_types before we can expect gconf (via the gnc file backend) to
work, as per the gconf API docs.
2006-02-15 Derek Atkins <derek@ihtfp.com>
* src/business/business-core/business-core.scm:

View File

@ -26,7 +26,6 @@
* @brief test the loading of a version-2 gnucash XML file
*/
#include <glib.h>
#include <stdlib.h>
#include <stdio.h>
#include <sys/types.h>
@ -34,6 +33,9 @@
#include <unistd.h>
#include <dirent.h>
#include <string.h>
#include <glib.h>
#include <glib-object.h>
#include "cashobjects.h"
#include "Group.h"
#include "TransLog.h"
@ -107,6 +109,8 @@ main (int argc, char ** argv)
const char *location = getenv("GNC_TEST_FILES");
DIR *xml2_dir;
g_type_init();
qof_init();
cashobjects_register();
do_test(