[Lldb-commits] [PATCH] D110962: [lldb] Add unit tests for Terminal API

Michał Górny via Phabricator via lldb-commits lldb-commits at lists.llvm.org
Mon Oct 4 03:47:56 PDT 2021


mgorny marked an inline comment as done.
mgorny added a comment.

In D110962#3039428 <https://reviews.llvm.org/D110962#3039428>, @labath wrote:

> Have you considered using the PseudoTerminal class to create the ptys ?

That's really stupid of me but for some reason I've assumed that if LLDB had any pty-related logic, it'd live in `Terminal.h` ;-).



================
Comment at: lldb/unittests/Host/CMakeLists.txt:27
+if (LLDB_ENABLE_TERMIOS AND
+    CMAKE_SYSTEM_NAME MATCHES "Darwin|FreeBSD|Linux|NetBSD|OpenBSD")
+  list(APPEND FILES
----------------
labath wrote:
> mgorny wrote:
> > FTR, I've tested it on FreeBSD and Linux so far. NetBSD in progress. Darwin and OpenBSD support is based on what I've found in gnulib but explicit testing would be helpful.
> At this point, I'd just go with `NOT windows`
If I'm using `PseudoTerminal`, then I guess I don't need the platform check at all (and 'not Windows' is implied by `LLDB_ENABLE_TERMIOS`).


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D110962/new/

https://reviews.llvm.org/D110962



More information about the lldb-commits mailing list