[glib] gdbus: fix gdbus-exit-on-close for gdbusconnection change
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gdbus: fix gdbus-exit-on-close for gdbusconnection change
- Date: Sat, 8 Aug 2015 20:27:04 +0000 (UTC)
commit ff3dee4bf68c7bf971185f7fe6d06e71a71293d9
Author: Dan Winship <danw gnome org>
Date: Thu Aug 6 17:00:16 2015 -0400
gdbus: fix gdbus-exit-on-close for gdbusconnection change
gio/tests/gdbus-exit-on-close.c | 12 ++----------
1 files 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();
}
/* ---------------------------------------------------------------------------------------------------- */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]