From f534276eb20d8035566a206d1e38fd651a1eeab9 Mon Sep 17 00:00:00 2001 From: Simon McVittie 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 --- 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