[telepathy-gabble/master] test-presence: stop asserting about the behaviour of gabble_presence_dump

Simon McVittie simon.mcvittie at collabora.co.uk
Mon Aug 24 11:20:40 PDT 2009


It's for debug only, so this seems inappropriate for a regression test.
---
 tests/test-presence.c |   32 --------------------------------
 1 files changed, 0 insertions(+), 32 deletions(-)

diff --git a/tests/test-presence.c b/tests/test-presence.c
index b9a25cb..9950a5f 100644
--- a/tests/test-presence.c
+++ b/tests/test-presence.c
@@ -19,7 +19,6 @@ predicate_true (const GabbleCapabilitySet *set,
 int main (int argc, char **argv)
 {
   const gchar *resource;
-  gchar *dump;
   GabblePresence *presence;
   GabbleCapabilitySet *cap_set;
 
@@ -126,26 +125,6 @@ int main (int argc, char **argv)
       PRESENCE_CAP_GOOGLE_VOICE, 0);
   gabble_capability_set_free (cap_set);
 
-  dump = gabble_presence_dump (presence);
-  g_assert (0 == strcmp (dump,
-    "nickname: (null)\n"
-    "accumulated status: 8\n"
-    "accumulated status msg: status message\n"
-    "accumulated capabilities: 2\n"
-    "kept while unavailable: 0\n"
-    "resources:\n"
-    "  foo\n"
-    "    capabilities: 0\n"
-    "    status: 8\n"
-    "    status msg: status message\n"
-    "    priority: 0\n"
-    "  bar\n"
-    "    capabilities: 2\n"
-    "    status: 7\n"
-    "    status msg: dingoes\n"
-    "    priority: -1\n"));
-  g_free (dump);
-
   /* no resource with non-negative priority has the Google voice cap */
   resource = gabble_presence_pick_resource_by_caps (presence,
       gabble_capability_set_predicate_has, NS_GOOGLE_FEAT_VOICE);
@@ -174,17 +153,6 @@ int main (int argc, char **argv)
       gabble_capability_set_predicate_has, NS_GOOGLE_FEAT_VOICE);
   g_assert (NULL == resource);
 
-  dump = gabble_presence_dump (presence);
-  g_assert (0 == strcmp (dump,
-    "nickname: (null)\n"
-    "accumulated status: 0\n"
-    "accumulated status msg: gone\n"
-    "accumulated capabilities: 2\n"
-    "kept while unavailable: 0\n"
-    "resources:\n"
-    "  (none)\n"));
-  g_free (dump);
-
   g_object_unref (presence);
 
   gabble_capabilities_finalize (NULL);
-- 
1.5.6.5




More information about the telepathy-commits mailing list