1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|