summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Laban <david.laban@collabora.co.uk>2011-05-31 16:22:12 -0400
committerDavid Laban <david.laban@collabora.co.uk>2011-05-31 16:22:12 -0400
commit1bfaa66fc35c65183714225b861bf1ba6d255170 (patch)
treeac87e3608ef1861e46207f6957dd991107bae609
parentef8d5d16475dce2a82b59898615b265e57dc7422 (diff)
Don't skip the test if debugging is disabledtest-debug
-rw-r--r--tests/twisted/test-debug.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/twisted/test-debug.py b/tests/twisted/test-debug.py
index 498d319..d0e5758 100644
--- a/tests/twisted/test-debug.py
+++ b/tests/twisted/test-debug.py
@@ -9,11 +9,6 @@ from servicetest import assertEquals, sync_dbus
from sofiatest import exec_test
import constants as cs
from config import DEBUGGING
-
-if not DEBUGGING:
- print " -- Not testing debugger, built with --disable-debug"
- raise SystemExit(77)
-
path = '/org/freedesktop/Telepathy/debug'
iface = 'org.freedesktop.Telepathy.Debug'
@@ -43,7 +38,10 @@ def test(q, bus, conn, stream):
cs.CHANNEL_TYPE_TEXT, cs.HT_CONTACT, conn.GetSelfHandle(), True)
q.expect('dbus-signal', signal='NewChannel')
- assert len(messages) > 0
+ if DEBUGGING:
+ assert len(messages) > 0
+ else:
+ assertEquals([], messages)
# Turn signalling off and check we don't get any more messages.