Shut down GNOME plugin fixture before disposing it
This commit is contained in:
parent
3795cc8538
commit
0909fb39db
2 changed files with 18 additions and 0 deletions
|
|
@ -124,6 +124,14 @@ Required before claiming hardware readiness:
|
|||
|
||||
## Execution order after this audit
|
||||
|
||||
Normal run `20261107T230815Z` passed Rust and filesystem checks and both
|
||||
Flatpak refreshes, then failed in the native GNOME fixture teardown: it skipped
|
||||
GNOME Software 51's required `gs_plugin_shutdown_async()` before unref, leaving
|
||||
an updates-changed source pending. The fixture now awaits shutdown and checks
|
||||
its result before disposal. All update/download/stage/error assertions remain;
|
||||
verification is pending the next normal release run. Failure evidence is archived
|
||||
on terra under that run's `failure-evidence/` directory; nothing was published.
|
||||
|
||||
Compatibility requirement: existing installations must update through their
|
||||
current signed image track without first acquiring new overlay metadata/policy.
|
||||
Refresh/update age comparisons now use the retained clean upstream identity for
|
||||
|
|
|
|||
|
|
@ -68,6 +68,12 @@ static void method(GDBusConnection *bus, const gchar *sender, const gchar *path,
|
|||
}
|
||||
}
|
||||
static const GDBusInterfaceVTable vtable = {.method_call = method};
|
||||
static void shutdown_completed(GObject *source, GAsyncResult *result, gpointer data)
|
||||
{
|
||||
g_assert_true(gs_plugin_shutdown_finish(GS_PLUGIN(source), result, &result_error));
|
||||
g_assert_no_error(result_error);
|
||||
g_main_loop_quit(loop);
|
||||
}
|
||||
static void updated(GObject *source, GAsyncResult *result, gpointer data)
|
||||
{
|
||||
update_result = update_finish(GS_PLUGIN(source), result, &result_error);
|
||||
|
|
@ -128,6 +134,10 @@ int main(void)
|
|||
g_main_loop_run(loop);
|
||||
g_assert_no_error(result_error); g_assert_true(update_result);
|
||||
g_assert_cmpuint(prepares, ==, 3); g_assert_cmpuint(stages, ==, 2);
|
||||
/* Match the GNOME Software 51 loader lifecycle: shutdown clears pending
|
||||
* updates-changed emissions before dispose. */
|
||||
gs_plugin_shutdown_async(plugin, NULL, shutdown_completed, NULL);
|
||||
g_main_loop_run(loop);
|
||||
g_clear_object(&result_list);
|
||||
g_clear_object(&plugin);
|
||||
g_dbus_connection_unregister_object(bus, manager);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue