[gnome-builder] subprocess: fix assertion now that additional FDs are allowed
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] subprocess: fix assertion now that additional FDs are allowed
- Date: Thu, 2 Mar 2017 23:36:44 +0000 (UTC)
commit b1d12c33bfcfbdf762d569ffaef44419d7c218d4
Author: Christian Hergert <chergert redhat com>
Date: Thu Mar 2 15:35:46 2017 -0800
subprocess: fix assertion now that additional FDs are allowed
Now that we can have additional FDs for passing to the host process, we
need to update our assertion for the FDList.
https://bugzilla.gnome.org/show_bug.cgi?id=779494
libide/subprocess/ide-breakout-subprocess.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libide/subprocess/ide-breakout-subprocess.c b/libide/subprocess/ide-breakout-subprocess.c
index 02754f5..d8130c2 100644
--- a/libide/subprocess/ide-breakout-subprocess.c
+++ b/libide/subprocess/ide-breakout-subprocess.c
@@ -1460,7 +1460,7 @@ ide_breakout_subprocess_initable_init (GInitable *initable,
* system. We need to ensure our fd_list is sent across for redirecting
* various standard streams.
*/
- g_assert_cmpint (3, ==, g_unix_fd_list_get_length (fd_list));
+ g_assert_cmpint (g_unix_fd_list_get_length (fd_list), >=, 3);
params = g_variant_new ("(^ay^aay@a{uh}@a{ss}u)",
self->cwd ?: g_get_home_dir (),
self->argv,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]