diff options
author | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-02 11:46:34 +0200 |
---|---|---|
committer | Guillaume Desmottes <guillaume.desmottes@collabora.co.uk> | 2010-06-02 15:33:52 +0200 |
commit | d929114908ae7adb9a52e7de0a67535c74c8605c (patch) | |
tree | d1c793720368b354789ec87f3d42280631a40972 /tests | |
parent | f595c64f5fec8b8a4f2ed4f51be15ecac1d80246 (diff) | |
download | telepathy-logger-d929114908ae7adb9a52e7de0a67535c74c8605c.tar.gz |
Use GDate instead of string to represent dates in API
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test-searches.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/test-searches.c b/tests/test-searches.c index a0c4a13..d524ba6 100644 --- a/tests/test-searches.c +++ b/tests/test-searches.c @@ -2,6 +2,7 @@ #include <glib.h> +#include <telepathy-logger/debug-internal.h> #include <telepathy-logger/log-manager.h> #include <telepathy-logger/log-manager-internal.h> #include <telepathy-logger/log-store-internal.h> @@ -22,9 +23,9 @@ got_dates_cb (GObject *obj, GAsyncResult *result, gpointer user_data) for (; ret != NULL; ret = g_list_next (ret)) { - gchar *date = ret->data; + GDate *date = ret->data; /* g_assert (!tp_strdiff (date, "12345678")); */ - g_free (date); + g_date_free (date); } g_list_free (ret); g_main_loop_quit (loop); @@ -67,7 +68,7 @@ main (int argc, char *argv[]) ret = g_list_sort (ret, (GCompareFunc) g_strcmp0); for (loc = ret; loc; loc = g_list_next (loc)) if (loc->next) - g_assert (g_strcmp0 (loc->data, loc->next->data) != 0); + g_assert (g_date_compare (loc->data, loc->next->data) != 0); g_list_foreach (ret, (GFunc) g_free, NULL); g_list_free (ret); |