summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhilip Withnall <philip.withnall@collabora.co.uk>2015-08-18 08:54:34 +0100
committerPhilip Withnall <philip.withnall@collabora.co.uk>2015-08-18 08:54:34 +0100
commit5c3441dfc3599a0d990c91e3b15a888ea77e563f (patch)
tree4841022439b7def7af435f3fecf2547072412d73
parente9a8ed15c780c19bef6ce430356ad3393e25941f (diff)
downloadlibgdata-5c3441dfc3599a0d990c91e3b15a888ea77e563f.tar.gz
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
-rw-r--r--gdata/tests/Makefile.am3
-rw-r--r--gdata/tests/memory.c77
2 files changed, 0 insertions, 80 deletions
diff --git a/gdata/tests/Makefile.am b/gdata/tests/Makefile.am
index 15749bd0..a3ca6264 100644
--- a/gdata/tests/Makefile.am
+++ b/gdata/tests/Makefile.am
@@ -65,9 +65,6 @@ test_programs = \
# to v3 API transitions.
#all_test_programs += documents
-# FIXME: Temporarily disabled until https://bugzilla.gnome.org/show_bug.cgi?id=705303 is fixed.
-#all_test_programs += memory
-
dist_test_data = \
photo.jpg \
sample.ogg \
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 <philip@tecnocode.co.uk>
- *
- * 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 <http://www.gnu.org/licenses/>.
- */
-
-#include <glib.h>
-
-#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;
-}