[glib] gio/tests/giomodule.c: Use G_MODULE_SUFFIX



commit 589aed9383c6008d71ae5fe12356ffdd944802f0
Author: Chun-wei Fan <fanchunwei src gnome org>
Date:   Fri Jan 3 23:48:04 2014 +0800

    gio/tests/giomodule.c: Use G_MODULE_SUFFIX
    
    The file extension of the GIO module could be something other than .so,
    depending on platform.  Use G_MODULE_SUFFIX so that the test will run
    correctly on non-*nix platforms, such as Windows.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=719344

 gio/tests/giomodule.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/giomodule.c b/gio/tests/giomodule.c
index 1b2eb6f..235f38f 100644
--- a/gio/tests/giomodule.c
+++ b/gio/tests/giomodule.c
@@ -108,7 +108,7 @@ test_module_scan_all_with_scope (void)
 
       ep = g_io_extension_point_register ("test-extension-point");
       scope = g_io_module_scope_new (G_IO_MODULE_SCOPE_BLOCK_DUPLICATES);
-      g_io_module_scope_block (scope, "libtestmoduleb.so");
+      g_io_module_scope_block (scope, "libtestmoduleb." G_MODULE_SUFFIX);
       g_io_modules_scan_all_in_directory_with_scope (g_test_get_filename (G_TEST_DIST, "modules", NULL), 
scope);
       list = g_io_extension_point_get_extensions (ep);
       g_io_modules_scan_all_in_directory_with_scope (g_test_get_filename (G_TEST_DIST, "modules/.libs", 
NULL), scope);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]