summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2011-09-21 19:24:13 +0100
committerWill Thompson <will.thompson@collabora.co.uk>2011-09-23 11:27:08 +0100
commit746c6982d06a124b05b439f11d92ae24fa252a40 (patch)
tree661d089975962328aa801e2bedb4115f292a7b9e
parent5bb613053dead289ac11f0330dd99bf5fcf5af39 (diff)
downloadtelepathy-mission-control-746c6982d06a124b05b439f11d92ae24fa252a40.tar.gz
Make the regression tests work with D-Bus >= 1.5.6
The tests rely on being able to eavesdrop. Since D-Bus 1.5.6, normal match rules do not eavesdrop, even if allowed: you have to specifically ask for it. https://bugs.freedesktop.org/show_bug.cgi?id=41090 Reviewed-by: Will Thompson <will.thompson@collabora.co.uk>
-rw-r--r--tests/twisted/servicetest.py9
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/twisted/servicetest.py b/tests/twisted/servicetest.py
index 36ff6683..bf22beb7 100644
--- a/tests/twisted/servicetest.py
+++ b/tests/twisted/servicetest.py
@@ -311,7 +311,14 @@ class IteratingEventQueue(BaseEventQueue):
bus.add_message_filter(self._dbus_dev_null)
return
- bus.add_match_string("") # eavesdrop, like dbus-monitor does
+ try:
+ # for dbus > 1.5
+ bus.add_match_string("eavesdrop=true")
+ except dbus.DBusException:
+ pass
+
+ # for dbus 1.4
+ bus.add_match_string("")
bus.add_message_filter(self._dbus_filter_bound_method)