[gnome-builder/wip/chergert/debugger: 110/163] mi2: test ttyname() against what we opened
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-builder/wip/chergert/debugger: 110/163] mi2: test ttyname() against what we opened
- Date: Tue, 9 May 2017 00:54:16 +0000 (UTC)
commit 1a4b82fb7c3901f30112dd161cb1b5e8a1687955
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]