summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-05-21 12:34:41 +0200
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-05-26 12:35:22 +0200
commit7b032fb01100f08efc3beb4ef2a4591262a398a8 (patch)
treeca10dd918b8b2641f5baadb245399b2185c69c28 /tests
parentf34ec7df6a34724ce178ff779d06d024b4fc5e3f (diff)
downloadtelepathy-logger-7b032fb01100f08efc3beb4ef2a4591262a398a8.tar.gz
fix tpl_log_manager_get_dates_finish signature and implementation
We need to return a boolean to indicate if the call succeed or not. Returning NULL in case of failure is wrong as an empty list is represented with NULL as well.
Diffstat (limited to 'tests')
-rw-r--r--tests/test-searches.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/tests/test-searches.c b/tests/test-searches.c
index 7ff7e7f..71ef43a 100644
--- a/tests/test-searches.c
+++ b/tests/test-searches.c
@@ -13,8 +13,12 @@ static GMainLoop *loop = NULL;
static void
got_dates_cb (GObject *obj, GAsyncResult *result, gpointer user_data)
{
- GList *ret = tpl_log_manager_get_dates_finish (TPL_LOG_MANAGER (obj), result,
- NULL);
+ GList *ret;
+ GError *error = NULL;
+
+ tpl_log_manager_get_dates_finish (TPL_LOG_MANAGER (obj), result, &ret,
+ &error);
+ g_assert_no_error (error);
for (; ret != NULL; ret = g_list_next (ret))
{
@@ -26,8 +30,6 @@ got_dates_cb (GObject *obj, GAsyncResult *result, gpointer user_data)
g_main_loop_quit (loop);
}
-
-
int
main (int argc, char *argv[])
{