gdbus: fix gdbus-exit-on-close for gdbusconnection change

This commit is contained in:
Dan Winship 2015-08-06 17:00:16 -04:00
parent a366053253
commit ff3dee4bf6

View 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,16 +186,10 @@ 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 ();
}
else
{
g_test_trap_assert_stderr (VANISHED_PATTERN);
g_test_trap_assert_failed();
}
}
/* ---------------------------------------------------------------------------------------------------- */