[gnome-builder/wip/gtk4-port] build: fix incorrect assertions



commit 6ddea74ae64dc55af951fd0d95166bf7ae8bdde0
Author: Christian Hergert <chergert redhat com>
Date:   Tue Jun 21 17:11:11 2022 -0700

    build: fix incorrect assertions

 src/libide/foundry/ide-run-manager.c      | 2 +-
 src/plugins/jhbuild/gbp-jhbuild-runtime.c | 4 +++-
 2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/libide/foundry/ide-run-manager.c b/src/libide/foundry/ide-run-manager.c
index 5e12793af..1dc59d5b3 100644
--- a/src/libide/foundry/ide-run-manager.c
+++ b/src/libide/foundry/ide-run-manager.c
@@ -954,7 +954,7 @@ ide_run_manager_run_discover_run_command_cb (GObject      *object,
   g_set_object (&self->current_run_command, run_command);
 
   cancellable = ide_task_get_cancellable (task);
-  g_assert (!cancellable || G_IS_CANCELLABLE (task));
+  g_assert (!cancellable || G_IS_CANCELLABLE (cancellable));
 
   pipeline = ide_task_get_task_data (task);
   g_assert (IDE_IS_PIPELINE (pipeline));
diff --git a/src/plugins/jhbuild/gbp-jhbuild-runtime.c b/src/plugins/jhbuild/gbp-jhbuild-runtime.c
index 7ef0b8615..ab2a2aea2 100644
--- a/src/plugins/jhbuild/gbp-jhbuild-runtime.c
+++ b/src/plugins/jhbuild/gbp-jhbuild-runtime.c
@@ -94,7 +94,9 @@ gbp_jhbuild_runtime_run_handler (IdeRunContext       *run_context,
 
   IDE_ENTRY;
 
-  g_assert (GBP_IS_JHBUILD_RUNTIME (run_context));
+  g_assert (IDE_IS_MAIN_THREAD ());
+  g_assert (GBP_IS_JHBUILD_RUNTIME (self));
+  g_assert (IDE_IS_RUN_CONTEXT (run_context));
   g_assert (IDE_IS_UNIX_FD_MAP (unix_fd_map));
 
   /* First merge our FDs so we can be sure there are no collisions (there


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