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



commit 9a74878d1c1f0ca23f3fe294f13602e7176f69e9
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]