[glib] Accept no-reply errors



commit 19012ada573221aeedaa982336f2f7b945860bb3
Author: Matthias Clasen <mclasen redhat com>
Date:   Sat Jun 12 01:55:25 2010 -0400

    Accept no-reply errors
    
    This can happen if the app quits before the dbus reply can be
    sent out.

 gio/tests/testapps.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gio/tests/testapps.c b/gio/tests/testapps.c
index ed34a47..e48a869 100644
--- a/gio/tests/testapps.c
+++ b/gio/tests/testapps.c
@@ -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);



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