need g_type_init() because we don't actually "load" the file backend.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@13278 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Derek Atkins 2006-02-16 06:06:25 +00:00
parent b481174d1f
commit ba4a80579a
2 changed files with 5 additions and 1 deletions

View File

@ -19,6 +19,9 @@
move jsled's g-type initialization into the module init move jsled's g-type initialization into the module init
this way we don't need to worry about it in every test app. this way we don't need to worry about it in every test app.
* src/backend/file/test/test-load/xml2.c:
need g_type_init() because we don't actually "load" the file backend.
2006-02-15 Joshua Sled <jsled@asynchronous.org> 2006-02-15 Joshua Sled <jsled@asynchronous.org>
* src/backend/file/test/test-load-xml2.c (main): Initialize * src/backend/file/test/test-load-xml2.c (main): Initialize

View File

@ -34,6 +34,7 @@
#include <dirent.h> #include <dirent.h>
#include <string.h> #include <string.h>
#include <glib.h> #include <glib.h>
#include <glib-object.h>
#include "cashobjects.h" #include "cashobjects.h"
#include "Group.h" #include "Group.h"
@ -108,6 +109,7 @@ main (int argc, char ** argv)
const char *location = getenv("GNC_TEST_FILES"); const char *location = getenv("GNC_TEST_FILES");
DIR *xml2_dir; DIR *xml2_dir;
g_type_init();
qof_init(); qof_init();
cashobjects_register(); cashobjects_register();
do_test( do_test(
@ -119,7 +121,6 @@ main (int argc, char ** argv)
location = "test-files/xml2"; location = "test-files/xml2";
} }
xaccLogDisable(); xaccLogDisable();
if((xml2_dir = opendir(location)) == NULL) if((xml2_dir = opendir(location)) == NULL)