[gnome-software/wip/mcrha/ci-test] mark more lines + enable reload



commit 2275d24c168ad9d481da88fbb4ced25e2bcccbbe
Author: Milan Crha <mcrha redhat com>
Date:   Wed Mar 16 15:41:56 2022 +0100

    mark more lines + enable reload

 lib/gs-plugin.c                | 5 ++---
 plugins/flatpak/gs-self-test.c | 3 +++
 2 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/lib/gs-plugin.c b/lib/gs-plugin.c
index a0623e2eb..84ee7d74d 100644
--- a/lib/gs-plugin.c
+++ b/lib/gs-plugin.c
@@ -938,9 +938,8 @@ gs_plugin_reload_cb (gpointer user_data)
 void
 gs_plugin_reload (GsPlugin *plugin)
 {
-       g_debug ("skip emitting ::reload in idle by plugin %s", G_OBJECT_TYPE_NAME (plugin));
-       /*g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, gs_plugin_reload_cb,
-                        weak_ref_new (plugin), (GDestroyNotify) weak_ref_free);*/
+       g_idle_add_full (G_PRIORITY_DEFAULT_IDLE, gs_plugin_reload_cb,
+                        weak_ref_new (plugin), (GDestroyNotify) weak_ref_free);
 }
 
 typedef struct {
diff --git a/plugins/flatpak/gs-self-test.c b/plugins/flatpak/gs-self-test.c
index 3910835a1..c9f94b931 100644
--- a/plugins/flatpak/gs-self-test.c
+++ b/plugins/flatpak/gs-self-test.c
@@ -424,8 +424,11 @@ gs_plugins_flatpak_app_with_runtime_func (GsPluginLoader *plugin_loader)
        plugin_job = gs_plugin_job_newv (GS_PLUGIN_ACTION_INSTALL,
                                         "app", app,
                                         NULL);
+       g_message ("xxx %s: %d\n", __FUNCTION__, __LINE__);
        ret = gs_plugin_loader_job_action (plugin_loader, plugin_job, NULL, &error);
+       g_message ("xxx %s: %d\n", __FUNCTION__, __LINE__);
        gs_test_flush_main_context ();
+       g_message ("xxx %s: %d\n", __FUNCTION__, __LINE__);
        g_assert_no_error (error);
        g_assert_true (ret);
        g_assert_cmpint (gs_app_get_state (app), ==, GS_APP_STATE_INSTALLED);


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