[Gnucash-changes] r14302 - gnucash/trunk/src/backend - When loading the gmodule backends from the test suite, look in ../.libs

Chris Shoemaker chris at cvs.gnucash.org
Sat Jun 3 10:51:11 EDT 2006


Author: chris
Date: 2006-06-03 10:51:10 -0400 (Sat, 03 Jun 2006)
New Revision: 14302
Trac: http://svn.gnucash.org/trac/changeset/14302

Modified:
   gnucash/trunk/src/backend/file/test/test-load-backend.c
   gnucash/trunk/src/backend/file/test/test-load-xml2.c
   gnucash/trunk/src/backend/postgres/test/test-db.c
   gnucash/trunk/src/backend/postgres/test/test-load-backend.c
   gnucash/trunk/src/backend/postgres/test/test-period.c
Log:
   When loading the gmodule backends from the test suite, look in ../.libs
   for the real module.


Modified: gnucash/trunk/src/backend/file/test/test-load-backend.c
===================================================================
--- gnucash/trunk/src/backend/file/test/test-load-backend.c	2006-06-03 13:42:53 UTC (rev 14301)
+++ gnucash/trunk/src/backend/file/test/test-load-backend.c	2006-06-03 14:51:10 UTC (rev 14302)
@@ -36,7 +36,7 @@
     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();

Modified: gnucash/trunk/src/backend/file/test/test-load-xml2.c
===================================================================
--- gnucash/trunk/src/backend/file/test/test-load-xml2.c	2006-06-03 13:42:53 UTC (rev 14301)
+++ gnucash/trunk/src/backend/file/test/test-load-xml2.c	2006-06-03 14:51:10 UTC (rev 14302)
@@ -111,7 +111,7 @@
     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)

Modified: gnucash/trunk/src/backend/postgres/test/test-db.c
===================================================================
--- gnucash/trunk/src/backend/postgres/test/test-db.c	2006-06-03 13:42:53 UTC (rev 14301)
+++ gnucash/trunk/src/backend/postgres/test/test-db.c	2006-06-03 14:51:10 UTC (rev 14302)
@@ -1094,7 +1094,7 @@
     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);

Modified: gnucash/trunk/src/backend/postgres/test/test-load-backend.c
===================================================================
--- gnucash/trunk/src/backend/postgres/test/test-load-backend.c	2006-06-03 13:42:53 UTC (rev 14301)
+++ gnucash/trunk/src/backend/postgres/test/test-load-backend.c	2006-06-03 14:51:10 UTC (rev 14302)
@@ -37,7 +37,7 @@
 	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();

Modified: gnucash/trunk/src/backend/postgres/test/test-period.c
===================================================================
--- gnucash/trunk/src/backend/postgres/test/test-period.c	2006-06-03 13:42:53 UTC (rev 14301)
+++ gnucash/trunk/src/backend/postgres/test/test-period.c	2006-06-03 14:51:10 UTC (rev 14302)
@@ -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 @@
   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 ();



More information about the gnucash-changes mailing list