Improve GInitable test coverage
authorMatthias Clasen <mclasen@redhat.com>
Mon, 23 Dec 2013 17:07:11 +0000 (12:07 -0500)
committerMatthias Clasen <mclasen@redhat.com>
Wed, 1 Jan 2014 22:59:20 +0000 (17:59 -0500)
This just adds a bit more variety to the uses of GInitiable
in other tests.

gio/tests/network-monitor.c

index 618b5e0..8901199 100644 (file)
@@ -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 */