mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
When loading the gmodule backends from the test suite, look in ../.libs
for the real module. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14302 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
89f37371d9
commit
7b07c2e238
@ -36,7 +36,7 @@ int main (int argc, char ** argv)
|
||||
qof_init();
|
||||
cashobjects_register();
|
||||
do_test(
|
||||
qof_load_backend_library ("../", GNC_LIB_NAME),
|
||||
qof_load_backend_library ("../.libs/", GNC_LIB_NAME),
|
||||
" loading gnc-backend-file GModule failed");
|
||||
print_test_results();
|
||||
qof_close();
|
||||
|
@ -111,7 +111,7 @@ main (int argc, char ** argv)
|
||||
g_type_init();
|
||||
qof_init();
|
||||
cashobjects_register();
|
||||
do_test(qof_load_backend_library ("../", GNC_LIB_NAME),
|
||||
do_test(qof_load_backend_library ("../.libs/", GNC_LIB_NAME),
|
||||
" loading gnc-backend-file GModule failed");
|
||||
|
||||
if (!location)
|
||||
|
@ -1094,7 +1094,7 @@ main (int argc, char **argv)
|
||||
DbInfo *dbinfo;
|
||||
|
||||
qof_init();
|
||||
do_test(qof_load_backend_library (QOF_LIB_DIR, PG_LIB_NAME),
|
||||
do_test(qof_load_backend_library ("../.libs/", PG_LIB_NAME),
|
||||
" loading gnc-backend-postgres GModule failed");
|
||||
|
||||
dbinfo = g_new0(DbInfo, 1);
|
||||
|
@ -37,7 +37,7 @@ int main (int argc, char ** argv)
|
||||
cashobjects_register();
|
||||
/* the test needs to run locally in case make install
|
||||
* has not yet been run. Use GNC_LIBDIR usually. */
|
||||
do_test(qof_load_backend_library ("../", PG_LIB_NAME),
|
||||
do_test(qof_load_backend_library ("../.libs/", PG_LIB_NAME),
|
||||
" loading gnc-backend-postgres GModule failed");
|
||||
print_test_results();
|
||||
qof_close();
|
||||
|
@ -34,7 +34,7 @@
|
||||
#include "test-engine-stuff.h"
|
||||
#include "Transaction.h"
|
||||
|
||||
#define PG_LIB_NAME "libgnc-backend-postgres.la"
|
||||
#define PG_LIB_NAME "gnc-backend-postgres"
|
||||
|
||||
static void
|
||||
run_test (void)
|
||||
@ -51,7 +51,7 @@ run_test (void)
|
||||
Timespec tsfirst, tslast, tsmiddle;
|
||||
char * test_url;
|
||||
|
||||
do_test(qof_load_backend_library (QOF_LIB_DIR, PG_LIB_NAME),
|
||||
do_test(qof_load_backend_library ("../.libs/", PG_LIB_NAME),
|
||||
" loading gnc-backend-postgres GModule failed");
|
||||
|
||||
session = get_random_session ();
|
||||
|
Loading…
Reference in New Issue
Block a user