summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-10 14:24:21 +0000
committerSimon McVittie <simon.mcvittie@collabora.co.uk>2014-03-13 13:59:34 +0000
commitd1bb86854d2097687a132786caa24643e0bc59e1 (patch)
treeb41a3c1080d22718d077ff1c4edc173f6ccdb46f
parentf9b4a13b80961c59f81aca14f5d3b988d68a7146 (diff)
downloadtelepathy-glib-d1bb86854d2097687a132786caa24643e0bc59e1.tar.gz
textchan-group: improve debug
Bug: https://bugs.freedesktop.org/show_bug.cgi?id=76000 Reviewed-by: Guillaume Desmottes
-rw-r--r--tests/lib/textchan-group.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/lib/textchan-group.c b/tests/lib/textchan-group.c
index fedb0028d..f9552401a 100644
--- a/tests/lib/textchan-group.c
+++ b/tests/lib/textchan-group.c
@@ -16,6 +16,8 @@
#include <telepathy-glib/telepathy-glib.h>
#include <telepathy-glib/telepathy-glib-dbus.h>
+#include "tests/lib/debug.h"
+
static void password_iface_init (gpointer iface, gpointer data);
G_DEFINE_TYPE_WITH_CODE (TpTestsTextChannelGroup,
@@ -97,9 +99,14 @@ remove_with_reason (GObject *obj,
/* User wants to leave */
if (!self->priv->closed)
{
+ DEBUG ("closed");
self->priv->closed = TRUE;
tp_svc_channel_emit_closed (self);
}
+ else
+ {
+ DEBUG ("already closed");
+ }
return TRUE;
}
@@ -179,8 +186,13 @@ dispose (GObject *object)
if (!self->priv->closed)
{
+ DEBUG ("closed");
tp_svc_channel_emit_closed (self);
}
+ else
+ {
+ DEBUG ("already closed");
+ }
((GObjectClass *) tp_tests_text_channel_group_parent_class)->dispose (object);
}
@@ -205,9 +217,14 @@ channel_close (TpBaseChannel *base)
if (!self->priv->closed)
{
+ DEBUG ("closed");
self->priv->closed = TRUE;
tp_svc_channel_emit_closed (self);
}
+ else
+ {
+ DEBUG ("already closed");
+ }
}
static void