GNOME Bugzilla – Bug 656059
provide a way to load uninstalled gio modules
Last modified: 2011-08-27 23:06:56 UTC
In order to have make-check-able tests in glib-networking, we need to be able to load the uninstalled module, and not load the installed module (if it exists). Does this API work for people?
Created attachment 193333 [details] [review] giomodule: add g_io_module_test() g_io_module_test() lets "make check" programs load an uninstalled GIOModule (and prevent the corresponding installed version from being loaded).
Created attachment 193334 [details] [review] tls/tests: use g_io_module_test and run test at "make check" time
is setting GIO_EXTRA_MODULES not enough ? You have to run gio-querymodules on the directory containing the uninstalled module(s), though.
It works if you've never run "make install" before, but if you have, you get: GLib-GObject-WARNING **: Two different plugins tried to register 'GTlsBackendGnutls'. Trace/breakpoint trap
BTW Matthias, actually we don't have to run gio-querymodules. If no cache file exists, then GIO will happily just load all the modules in the directory.
we went with Stef's patch instead *** This bug has been marked as a duplicate of bug 656914 ***