diff options
author | David Laban <david.laban@collabora.co.uk> | 2011-05-19 21:31:19 -0400 |
---|---|---|
committer | David Laban <david.laban@collabora.co.uk> | 2011-05-19 22:45:31 -0400 |
commit | 275e50a2774363161743a75f02d8d2e44f471373 (patch) | |
tree | ecc00380ebb7fa2d78bffd472e02bf13204a57c9 /tests | |
parent | 3a4bf33afed0f7c9919f9df2cd173110224ebe8e (diff) | |
download | telepathy-logger-275e50a2774363161743a75f02d8d2e44f471373.tar.gz |
fixup! fixup! Test message edits that have broken timestamps
cast to GFunc
Diffstat (limited to 'tests')
-rw-r--r-- | tests/dbus/test-tpl-log-store-xml.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/dbus/test-tpl-log-store-xml.c b/tests/dbus/test-tpl-log-store-xml.c index 2d2aa70..89d5fe1 100644 --- a/tests/dbus/test-tpl-log-store-xml.c +++ b/tests/dbus/test-tpl-log-store-xml.c @@ -543,9 +543,9 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, assert_cmp_text_event (event, superseded->data); g_assert (tpl_text_event_dup_supersedes (superseded->data) == NULL); - g_list_foreach (superseded, g_object_unref, NULL); + g_list_foreach (superseded, (GFunc) g_object_unref, NULL); g_list_free (superseded); - g_list_foreach (events, g_object_unref, NULL); + g_list_foreach (events, (GFunc) g_object_unref, NULL); g_list_free (events); /* 3. Edit it again. */ @@ -577,9 +577,9 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, assert_cmp_text_event (event, superseded->next->data); g_assert (tpl_text_event_dup_supersedes (superseded->next->data) == NULL); - g_list_foreach (superseded, g_object_unref, NULL); + g_list_foreach (superseded, (GFunc) g_object_unref, NULL); g_list_free (superseded); - g_list_foreach (events, g_object_unref, NULL); + g_list_foreach (events, (GFunc) g_object_unref, NULL); g_list_free (events); /* Also note that the superseding events *replace* the old ones. */ @@ -588,7 +588,7 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, g_assert_cmpint (g_list_length (events), == , 1); assert_cmp_text_event (TPL_EVENT (new_new_event), events->data); - g_list_foreach (events, g_object_unref, NULL); + g_list_foreach (events, (GFunc) g_object_unref, NULL); g_list_free (events); /* 4. Edit comes in with the wrong timestamp. */ @@ -618,9 +618,9 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, g_assert (superseded != NULL); g_assert_cmpstr (tpl_text_event_get_message (superseded->data), ==, ""); - g_list_foreach (superseded, g_object_unref, NULL); + g_list_foreach (superseded, (GFunc) g_object_unref, NULL); g_list_free (superseded); - g_list_foreach (events, g_object_unref, NULL); + g_list_foreach (events, (GFunc) g_object_unref, NULL); g_list_free (events); /* And if we ask for all of the events, there will be 2 there. */ @@ -630,7 +630,7 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, assert_cmp_text_event (TPL_EVENT (new_new_event), events->data); assert_cmp_text_event (TPL_EVENT (late_event), g_list_last (events)->data); - g_list_foreach (events, g_object_unref, NULL); + g_list_foreach (events, (GFunc) g_object_unref, NULL); g_list_free (events); /* 5. If we have an event that is broken in the other direction then it will @@ -658,7 +658,7 @@ test_add_superseding_event (XmlTestCaseFixture *fixture, assert_cmp_text_event (TPL_EVENT (new_new_event), events->next->data); assert_cmp_text_event (TPL_EVENT (late_event), g_list_last (events)->data); - g_list_foreach (events, g_object_unref, NULL); + g_list_foreach (events, (GFunc) g_object_unref, NULL); g_list_free (events); g_object_unref (event); |