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

@ -971,7 +971,7 @@ gnc_backend_new(void)
gnc_be->file_retention_days = (int)gnc_gconf_get_float("general", "retain_days", NULL);
gnc_be->file_compression = gnc_gconf_get_bool("general", "file_compression", NULL);
gnc_gconf_general_register_cb("retain_days", retain_changed_cb, be);
gnc_gconf_general_register_cb("file_compression", compression_changed_cb, be);

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,11 +109,13 @@ main (int argc, char ** argv)
const char *location = getenv("GNC_TEST_FILES");
DIR *xml2_dir;
qof_init();
cashobjects_register();
do_test(
qof_load_backend_library ("../", GNC_LIB_NAME, GNC_LIB_INIT),
" loading gnc-backend-file GModule failed");
g_type_init();
qof_init();
cashobjects_register();
do_test(
qof_load_backend_library ("../", GNC_LIB_NAME, GNC_LIB_INIT),
" loading gnc-backend-file GModule failed");
if (!location)
{