Accept no-reply errors
authorMatthias Clasen <mclasen@redhat.com>
Sat, 12 Jun 2010 05:55:25 +0000 (01:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 12 Jun 2010 05:55:25 +0000 (01:55 -0400)
This can happen if the app quits before the dbus reply can be
sent out.

gio/tests/testapps.c

index ed34a47..e48a869 100644 (file)
@@ -309,8 +309,11 @@ call_quit (gpointer data)
                                      -1,
                                      NULL,
                                      &error);
-
-  g_assert_no_error (error);
+  if (error)
+    {
+      g_assert_error (error, G_DBUS_ERROR, G_DBUS_ERROR_NO_REPLY);
+      g_error_free (error);
+    }
 
   if (res)
     g_variant_unref (res);