mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
parent
cdf1e2e316
commit
88f70b0508
@ -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:
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user