From ff3dee4bf68c7bf971185f7fe6d06e71a71293d9 Mon Sep 17 00:00:00 2001 From: Dan Winship Date: Thu, 6 Aug 2015 17:00:16 -0400 Subject: [PATCH] gdbus: fix gdbus-exit-on-close for gdbusconnection change --- gio/tests/gdbus-exit-on-close.c | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/gio/tests/gdbus-exit-on-close.c b/gio/tests/gdbus-exit-on-close.c index 5ec6e93..291cc8f 100644 --- a/gio/tests/gdbus-exit-on-close.c +++ b/gio/tests/gdbus-exit-on-close.c @@ -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(); } /* ---------------------------------------------------------------------------------------------------- */ -- 2.7.4