mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-13 15:56:23 +01:00
gdbus: fix gdbus-exit-on-close for gdbusconnection change
This commit is contained in:
parent
a366053253
commit
ff3dee4bf6
@ -60,8 +60,6 @@ quit_later_cb (gpointer data G_GNUC_UNUSED)
|
|||||||
return FALSE;
|
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
|
static void
|
||||||
closed_cb (GDBusConnection *c G_GNUC_UNUSED,
|
closed_cb (GDBusConnection *c G_GNUC_UNUSED,
|
||||||
gboolean remote_peer_vanished,
|
gboolean remote_peer_vanished,
|
||||||
@ -188,15 +186,9 @@ test_exit_on_close (gconstpointer test_data)
|
|||||||
|
|
||||||
if (td->exit_on_close == EXPLICITLY_FALSE ||
|
if (td->exit_on_close == EXPLICITLY_FALSE ||
|
||||||
td->who_closes == LOCAL)
|
td->who_closes == LOCAL)
|
||||||
{
|
g_test_trap_assert_passed ();
|
||||||
g_test_trap_assert_stderr_unmatched (VANISHED_PATTERN);
|
|
||||||
g_test_trap_assert_passed ();
|
|
||||||
}
|
|
||||||
else
|
else
|
||||||
{
|
g_test_trap_assert_failed();
|
||||||
g_test_trap_assert_stderr (VANISHED_PATTERN);
|
|
||||||
g_test_trap_assert_failed();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ---------------------------------------------------------------------------------------------------- */
|
/* ---------------------------------------------------------------------------------------------------- */
|
||||||
|
Loading…
Reference in New Issue
Block a user