From f9e881e658e8e77c5688032c54181a62b6615304 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 31 May 2011 17:03:59 +0100 Subject: [PATCH 1/3] registrations test: only listen for signals, not all messages Otherwise, we'd reply with an error to messages not intended for us. --- test/core/registrations.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) 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); -- 1.7.5.3