[gnome-builder] meson: redirect stderr to null
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder] meson: redirect stderr to null
- Date: Mon, 21 Jan 2019 19:53:46 +0000 (UTC)
commit 96aa3ce1faf7a88306727e800177068de22ba860
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 21 11:53:29 2019 -0800
meson: redirect stderr to null
src/plugins/meson/gbp-meson-build-target-provider.c | 9 ++++++++-
src/plugins/meson/gbp-meson-test-provider.c | 3 ++-
2 files changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/plugins/meson/gbp-meson-build-target-provider.c
b/src/plugins/meson/gbp-meson-build-target-provider.c
index 409fce010..5879609b1 100644
--- a/src/plugins/meson/gbp-meson-build-target-provider.c
+++ b/src/plugins/meson/gbp-meson-build-target-provider.c
@@ -37,6 +37,7 @@ create_launcher (IdeContext *context,
{
IdePipeline *pipeline;
IdeBuildManager *build_manager;
+ IdeSubprocessLauncher *ret;
g_assert (IDE_IS_CONTEXT (context));
g_assert (error == NULL || *error == NULL);
@@ -53,7 +54,13 @@ create_launcher (IdeContext *context,
return NULL;
}
- return ide_pipeline_create_launcher (pipeline, error);
+ ret = ide_pipeline_create_launcher (pipeline, error);
+
+ if (ret != NULL)
+ ide_subprocess_launcher_set_flags (ret,
+ ide_subprocess_launcher_get_flags (ret) |
G_SUBPROCESS_FLAGS_STDERR_SILENCE);
+
+ return g_steal_pointer (&ret);
}
static void
diff --git a/src/plugins/meson/gbp-meson-test-provider.c b/src/plugins/meson/gbp-meson-test-provider.c
index 5d9af0f9b..b5ccd4957 100644
--- a/src/plugins/meson/gbp-meson-test-provider.c
+++ b/src/plugins/meson/gbp-meson-test-provider.c
@@ -208,7 +208,8 @@ gbp_meson_test_provider_do_reload (GbpMesonTestProvider *self,
if (NULL == (launcher = ide_pipeline_create_launcher (pipeline, &error)))
IDE_GOTO (failure);
- ide_subprocess_launcher_set_flags (launcher, G_SUBPROCESS_FLAGS_STDOUT_PIPE);
+ ide_subprocess_launcher_set_flags (launcher,
+ G_SUBPROCESS_FLAGS_STDOUT_PIPE | G_SUBPROCESS_FLAGS_STDERR_SILENCE);
builddir = ide_pipeline_get_builddir (pipeline);
ide_subprocess_launcher_set_cwd (launcher, builddir);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]