[Telepathy-commits] [telepathy-glib/master] tests/dbus/text-mixin.c: exercise Close() (assumes echo CM has TpExportableChannel)

Simon McVittie simon.mcvittie at collabora.co.uk
Thu Oct 30 07:06:23 PDT 2008


---
 tests/dbus/text-mixin.c |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)

diff --git a/tests/dbus/text-mixin.c b/tests/dbus/text-mixin.c
index f63ae37..f1c7b69 100644
--- a/tests/dbus/text-mixin.c
+++ b/tests/dbus/text-mixin.c
@@ -284,6 +284,22 @@ main (int argc,
       g_boxed_free (TP_ARRAY_TYPE_PENDING_TEXT_MESSAGE_LIST, messages);
     }
 
+  g_print ("\n\n==== Closing channel ====\n");
+
+    {
+      gboolean dead;
+
+      MYASSERT (tp_cli_channel_run_close (chan, -1, &error, NULL), "");
+      MYASSERT_NO_ERROR (error);
+      MYASSERT (tp_proxy_get_invalidated (chan) != NULL, "");
+
+      g_object_get (service_chan,
+          "channel-destroyed", &dead,
+          NULL);
+
+      MYASSERT (dead, "");
+    }
+
   g_print ("\n\n==== End of tests ====\n");
 
   MYASSERT (tp_cli_connection_run_disconnect (conn, -1, &error, NULL), "");
-- 
1.5.6.5




More information about the Telepathy-commits mailing list