[gnome-builder/wip/chergert/debugger: 38/39] mi2: test ttyname() against what we opened



commit 02d7d52fe275c72156131ca0668d663e87555341
Author: Christian Hergert <chergert redhat com>
Date:   Fri Mar 24 04:36:57 2017 -0700

    mi2: test ttyname() against what we opened

 contrib/mi2/test-client.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/contrib/mi2/test-client.c b/contrib/mi2/test-client.c
index 21a8493..0656b86 100644
--- a/contrib/mi2/test-client.c
+++ b/contrib/mi2/test-client.c
@@ -54,6 +54,8 @@ open_pty (gint *out_master_fd,
   *out_slave_fd = slave_fd;
   *out_master_fd = master_fd;
 
+  g_assert_cmpstr (name, ==, ttyname (slave_fd));
+
   return g_strdup (name);
 }
 


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