From 5c3441dfc3599a0d990c91e3b15a888ea77e563f Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Tue, 18 Aug 2015 08:54:34 +0100 Subject: tests: Remove disabled memory test GLib has removed the memory allocation vtable for good, so this test can never be made to work. See: https://bugzilla.gnome.org/show_bug.cgi?id=701694 --- gdata/tests/memory.c | 77 ---------------------------------------------------- 1 file changed, 77 deletions(-) delete mode 100644 gdata/tests/memory.c (limited to 'gdata/tests/memory.c') diff --git a/gdata/tests/memory.c b/gdata/tests/memory.c deleted file mode 100644 index 32dd0c2a..00000000 --- a/gdata/tests/memory.c +++ /dev/null @@ -1,77 +0,0 @@ -/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ -/* - * GData Client - * Copyright (C) Philip Withnall 2009 - * - * GData Client is free software; you can redistribute it and/or - * modify it under the terms of the GNU Lesser General Public - * License as published by the Free Software Foundation; either - * version 2.1 of the License, or (at your option) any later version. - * - * GData Client is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. - * - * You should have received a copy of the GNU Lesser General Public - * License along with GData Client. If not, see . - */ - -#include - -#include "gdata.h" -#include "common.h" - -static void -test_query_events (void) -{ - GDataFeed *feed, *calendar_feed; - GDataClientLoginAuthorizer *authorizer; - GDataCalendarCalendar *calendar; - GDataCalendarService *service; - GList *calendars; - GError *error = NULL; - - authorizer = gdata_client_login_authorizer_new (CLIENT_ID, GDATA_TYPE_CALENDAR_SERVICE); - service = gdata_calendar_service_new (GDATA_AUTHORIZER (authorizer)); - - /* Log in */ - gdata_client_login_authorizer_authenticate (authorizer, USERNAME, PASSWORD, NULL, &error); - g_assert_no_error (error); - - /* Get a calendar */ - calendar_feed = gdata_calendar_service_query_own_calendars (service, NULL, NULL, NULL, NULL, &error); - g_assert_no_error (error); - - calendars = gdata_feed_get_entries (calendar_feed); - calendar = calendars->data; - - g_object_ref (calendar); - g_object_unref (calendar_feed); - - /* Get the entry feed */ - feed = gdata_calendar_service_query_events (service, calendar, NULL, NULL, NULL, NULL, &error); - g_assert_no_error (error); - - g_object_unref (feed); - g_object_unref (calendar); - g_object_unref (service); - g_object_unref (authorizer); -} - -int -main (int argc, char *argv[]) -{ - g_mem_set_vtable (glib_mem_profiler_table); - -#if !GLIB_CHECK_VERSION (2, 35, 0) - g_type_init (); -#endif - - test_query_events (); - - /* Print memory usage data */ - g_mem_profile (); - - return 0; -} -- cgit v1.2.1