summaryrefslogtreecommitdiffstats
path: root/extra/dbus-glib/registrations-test-only-listen-for-signals-not-all-messages.patch
diff options
context:
space:
mode:
Diffstat (limited to 'extra/dbus-glib/registrations-test-only-listen-for-signals-not-all-messages.patch')
-rw-r--r--extra/dbus-glib/registrations-test-only-listen-for-signals-not-all-messages.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/extra/dbus-glib/registrations-test-only-listen-for-signals-not-all-messages.patch b/extra/dbus-glib/registrations-test-only-listen-for-signals-not-all-messages.patch
new file mode 100644
index 000000000..a12e42253
--- /dev/null
+++ b/extra/dbus-glib/registrations-test-only-listen-for-signals-not-all-messages.patch
@@ -0,0 +1,33 @@
+From f534276eb20d8035566a206d1e38fd651a1eeab9 Mon Sep 17 00:00:00 2001
+From: Simon McVittie <simon.mcvittie@collabora.co.uk>
+Date: Tue, 31 May 2011 16:03:59 +0000
+Subject: registrations test: only listen for signals, not all messages
+
+Otherwise, we'd reply with an error to messages not intended for us.
+
+Reviewed-by: Colin Walters <walters@verbum.org>
+---
+diff --git a/test/core/registrations.c b/test/core/registrations.c
+index 8da8d14..a316313 100644
+--- a/test/core/registrations.c
++++ b/test/core/registrations.c
+@@ -232,7 +232,7 @@ test_twice (Fixture *f,
+ f->object);
+
+ dbus_bus_add_match (dbus_g_connection_get_connection (f->bus),
+- "", NULL);
++ "type='signal'", NULL);
+ mem = dbus_connection_add_filter (dbus_g_connection_get_connection (f->bus),
+ frobnicate_cb, f, NULL);
+ g_assert (mem);
+@@ -269,7 +269,7 @@ test_clean_slate (Fixture *f,
+ dbus_bool_t mem;
+
+ dbus_bus_add_match (dbus_g_connection_get_connection (f->bus),
+- "", NULL);
++ "type='signal'", NULL);
+ mem = dbus_connection_add_filter (dbus_g_connection_get_connection (f->bus),
+ frobnicate_cb, f, NULL);
+ g_assert (mem);
+--
+cgit v0.8.3-6-g21f6