[Telepathy-commits] [telepathy-glib/master] tests/dbus/connection.c: add a simple regression test for mapping user-requested disconnection to TP_ERROR_CANCELLED
Simon McVittie
simon.mcvittie at collabora.co.uk
Wed Jan 28 04:41:52 PST 2009
This goes via the old code path in TpConnection, using the status
reason.
---
tests/dbus/connection.c | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/tests/dbus/connection.c b/tests/dbus/connection.c
index d447411..e3b8f7c 100644
--- a/tests/dbus/connection.c
+++ b/tests/dbus/connection.c
@@ -216,6 +216,12 @@ main (int argc,
MYASSERT (tp_cli_connection_run_disconnect (conn, -1, &error, NULL), "");
MYASSERT_NO_ERROR (error);
+ MYASSERT (!tp_connection_run_until_ready (conn, FALSE, &error, NULL), "");
+ MYASSERT_SAME_UINT (error->domain, TP_ERRORS);
+ MYASSERT_SAME_UINT (error->code, TP_ERROR_CANCELLED);
+ g_error_free (error);
+ error = NULL;
+
service_conn_as_base = NULL;
g_object_unref (service_conn);
g_free (name);
--
1.5.6.5
More information about the telepathy-commits
mailing list