[gnome-software] trivial: Fix make check after recent dedupe fix
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] trivial: Fix make check after recent dedupe fix
- Date: Fri, 25 Mar 2016 09:54:05 +0000 (UTC)
commit 4fa28ce25dbd4061d2f4ed3cf9aabd6a6d1db626
Author: Richard Hughes <richard hughsie com>
Date: Thu Mar 24 20:27:46 2016 +0000
trivial: Fix make check after recent dedupe fix
src/gs-self-test.c | 28 +---------------------------
1 files changed, 1 insertions(+), 27 deletions(-)
---
diff --git a/src/gs-self-test.c b/src/gs-self-test.c
index 443dc78..2c0efe4 100644
--- a/src/gs-self-test.c
+++ b/src/gs-self-test.c
@@ -1,6 +1,6 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*-
*
- * Copyright (C) 2013 Richard Hughes <richard hughsie com>
+ * Copyright (C) 2013-2016 Richard Hughes <richard hughsie com>
*
* Licensed under the GNU General Public License Version 2
*
@@ -325,31 +325,6 @@ gs_plugin_loader_status_changed_cb (GsPluginLoader *plugin_loader,
}
static void
-gs_plugin_loader_dedupe_func (void)
-{
- g_autoptr(GsApp) app1 = NULL;
- g_autoptr(GsApp) app2 = NULL;
- g_autoptr(GsPluginLoader) loader = NULL;
-
- loader = gs_plugin_loader_new ();
-
- /* add app */
- app1 = gs_app_new ("app1");
- gs_app_set_description (app1, GS_APP_QUALITY_NORMAL, "description");
- app1 = gs_plugin_loader_dedupe (loader, app1);
- g_assert_cmpstr (gs_app_get_id (app1), ==, "app1");
- g_assert_cmpstr (gs_app_get_description (app1), ==, "description");
-
- app2 = gs_app_new ("app1");
- app2 = gs_plugin_loader_dedupe (loader, app2);
- g_assert_cmpstr (gs_app_get_id (app2), ==, "app1");
- g_assert_cmpstr (gs_app_get_description (app2), ==, "description");
- app2 = gs_plugin_loader_dedupe (loader, app2);
- g_assert_cmpstr (gs_app_get_id (app2), ==, "app1");
- g_assert_cmpstr (gs_app_get_description (app2), ==, "description");
-}
-
-static void
gs_plugin_loader_func (void)
{
gboolean ret;
@@ -698,7 +673,6 @@ main (int argc, char **argv)
g_test_add_func ("/gnome-software/app{subsume}", gs_app_subsume_func);
if (g_getenv ("HAS_APPSTREAM") != NULL)
g_test_add_func ("/gnome-software/plugin-loader{empty}", gs_plugin_loader_empty_func);
- g_test_add_func ("/gnome-software/plugin-loader{dedupe}", gs_plugin_loader_dedupe_func);
if(0)g_test_add_func ("/gnome-software/plugin-loader", gs_plugin_loader_func);
if(0)g_test_add_func ("/gnome-software/plugin-loader{webapps}", gs_plugin_loader_webapps_func);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]