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:
Chris Shoemaker 2006-06-03 14:51:10 +00:00
parent 89f37371d9
commit 7b07c2e238
5 changed files with 6 additions and 6 deletions

View File

@ -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();

View File

@ -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)

View File

@ -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);

View File

@ -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();

View File

@ -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 ();