[glib] Improve GInitable test coverage



commit e021bb910176413f18904fce5e677916116bc9bf
Author: Matthias Clasen <mclasen redhat com>
Date:   Mon Dec 23 12:07:11 2013 -0500

    Improve GInitable test coverage
    
    This just adds a bit more variety to the uses of GInitiable
    in other tests.

 gio/tests/network-monitor.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/tests/network-monitor.c b/gio/tests/network-monitor.c
index 618b5e0..8901199 100644
--- a/gio/tests/network-monitor.c
+++ b/gio/tests/network-monitor.c
@@ -243,7 +243,7 @@ test_default (void)
   m = g_network_monitor_get_default ();
   g_assert (G_IS_NETWORK_MONITOR (m));
 
-  monitor = g_initable_new (G_TYPE_NETWORK_MONITOR_BASE, NULL, &error, NULL);
+  monitor = g_initable_newv (G_TYPE_NETWORK_MONITOR_BASE, 0, NULL, NULL,  &error);
   g_assert_no_error (error);
 
   /* In the default configuration, all addresses are reachable */


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