gdbus: fix gdbus-exit-on-close for gdbusconnection change
authorDan Winship <danw@gnome.org>
Thu, 6 Aug 2015 21:00:16 +0000 (17:00 -0400)
committerDan Winship <danw@gnome.org>
Fri, 7 Aug 2015 13:49:57 +0000 (09:49 -0400)
gio/tests/gdbus-exit-on-close.c

index 5ec6e93..291cc8f 100644 (file)
@@ -60,8 +60,6 @@ quit_later_cb (gpointer data G_GNUC_UNUSED)
   return FALSE;
 }
 
-#define VANISHED_PATTERN "*Remote peer vanished with error: Underlying GIOStream returned 0 bytes on an async read (g-io-error-quark, 0). Exiting.*"
-
 static void
 closed_cb (GDBusConnection  *c G_GNUC_UNUSED,
            gboolean          remote_peer_vanished,
@@ -188,15 +186,9 @@ test_exit_on_close (gconstpointer test_data)
 
   if (td->exit_on_close == EXPLICITLY_FALSE ||
       td->who_closes == LOCAL)
-    {
-      g_test_trap_assert_stderr_unmatched (VANISHED_PATTERN);
-      g_test_trap_assert_passed ();
-    }
+    g_test_trap_assert_passed ();
   else
-    {
-      g_test_trap_assert_stderr (VANISHED_PATTERN);
-      g_test_trap_assert_failed();
-    }
+    g_test_trap_assert_failed();
 }
 
 /* ---------------------------------------------------------------------------------------------------- */