[libgdata/mcatanzaro/libgdata-0.18-fix] tests: fix build




commit 4947191563c545bc13be2b636684121b4fbfd936
Author: Michael Catanzaro <mcatanzaro redhat com>
Date:   Fri Jun 18 16:08:06 2021 -0500

    tests: fix build
    
    We missed a spot in !32. Shame there is no CI!

 gdata/tests/calendar.c | 14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)
---
diff --git a/gdata/tests/calendar.c b/gdata/tests/calendar.c
index 6e88aae3..b0b4d49b 100644
--- a/gdata/tests/calendar.c
+++ b/gdata/tests/calendar.c
@@ -1117,15 +1117,17 @@ test_query_uri (void)
        g_assert_cmpstr (gdata_calendar_query_get_order_by (query), ==, "starttime");
 
 G_GNUC_BEGIN_IGNORE_DEPRECATIONS
-       g_time_val_from_iso8601 ("2009-04-17T15:00:00.000Z", &time_val);
-       gdata_calendar_query_set_recurrence_expansion_start (query, time_val.tv_sec);
+       time_val = g_date_time_new_from_iso8601 ("2009-04-17T15:00:00.000Z", NULL);
+       gdata_calendar_query_set_recurrence_expansion_start (query, g_date_time_to_unix (time_val));
        _time = gdata_calendar_query_get_recurrence_expansion_start (query);
-       g_assert_cmpint (_time, ==, time_val.tv_sec);
+       g_assert_cmpint (_time, ==, g_date_time_to_unix (time_val));
+       g_date_time_unref (time_val);
 
-       g_time_val_from_iso8601 ("2010-04-17T15:00:00.000Z", &time_val);
-       gdata_calendar_query_set_recurrence_expansion_end (query, time_val.tv_sec);
+       time_val = g_date_time_new_from_iso8601 ("2010-04-17T15:00:00.000Z", NULL);
+       gdata_calendar_query_set_recurrence_expansion_end (query, g_date_time_to_unix (time_val));
        _time = gdata_calendar_query_get_recurrence_expansion_end (query);
-       g_assert_cmpint (_time, ==, time_val.tv_sec);
+       g_assert_cmpint (_time, ==, g_date_time_to_unix (time_val));
+       g_date_time_unref (time_val);
 G_GNUC_END_IGNORE_DEPRECATIONS
 
        gdata_calendar_query_set_single_events (query, TRUE);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]