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



commit e5164f63b19c39400b5e4d42a487d4b691f9a970
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]