[gnome-builder/wip/gtk4-port] libide/foundry: attach PTY to test's run context
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/gtk4-port] libide/foundry: attach PTY to test's run context
- Date: Fri, 1 Jul 2022 01:14:34 +0000 (UTC)
commit 1fec63ca347cc367d4748869fe594ac3b26fc21a
Author: Christian Hergert <chergert redhat com>
Date: Thu Jun 30 18:14:29 2022 -0700
libide/foundry: attach PTY to test's run context
src/libide/foundry/ide-test-manager.c | 2 ++
src/libide/foundry/ide-test.c | 1 +
2 files changed, 3 insertions(+)
---
diff --git a/src/libide/foundry/ide-test-manager.c b/src/libide/foundry/ide-test-manager.c
index d7a281c49..d566841f3 100644
--- a/src/libide/foundry/ide-test-manager.c
+++ b/src/libide/foundry/ide-test-manager.c
@@ -238,6 +238,8 @@ ide_test_manager_init (IdeTestManager *self)
self->pty = vte_pty_new_sync (VTE_PTY_DEFAULT, NULL, NULL);
+ g_assert (VTE_IS_PTY (self->pty));
+
filter = gtk_custom_filter_new (filter_tests_func, NULL, NULL);
self->filtered = gtk_filter_list_model_new (NULL, GTK_FILTER (g_steal_pointer (&filter)));
self->tests = gtk_map_list_model_new (g_object_ref (G_LIST_MODEL (self->filtered)),
diff --git a/src/libide/foundry/ide-test.c b/src/libide/foundry/ide-test.c
index 44758814f..33d5c2305 100644
--- a/src/libide/foundry/ide-test.c
+++ b/src/libide/foundry/ide-test.c
@@ -307,6 +307,7 @@ ide_test_run_async (IdeTest *self,
IDE_EXIT;
run_context = ide_pipeline_create_run_context (pipeline, self->run_command);
+ ide_run_context_set_pty (run_context, pty);
if (!(subprocess = ide_run_context_spawn (run_context, &error)))
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]