mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
b481174d1f
commit
ba4a80579a
@ -19,6 +19,9 @@
|
||||
move jsled's g-type initialization into the module init
|
||||
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>
|
||||
|
||||
* src/backend/file/test/test-load-xml2.c (main): Initialize
|
||||
|
@ -34,6 +34,7 @@
|
||||
#include <dirent.h>
|
||||
#include <string.h>
|
||||
#include <glib.h>
|
||||
#include <glib-object.h>
|
||||
|
||||
#include "cashobjects.h"
|
||||
#include "Group.h"
|
||||
@ -108,6 +109,7 @@ main (int argc, char ** argv)
|
||||
const char *location = getenv("GNC_TEST_FILES");
|
||||
DIR *xml2_dir;
|
||||
|
||||
g_type_init();
|
||||
qof_init();
|
||||
cashobjects_register();
|
||||
do_test(
|
||||
@ -119,7 +121,6 @@ main (int argc, char ** argv)
|
||||
location = "test-files/xml2";
|
||||
}
|
||||
|
||||
|
||||
xaccLogDisable();
|
||||
|
||||
if((xml2_dir = opendir(location)) == NULL)
|
||||
|
Loading…
Reference in New Issue
Block a user