[all-commits] [llvm/llvm-project] 85f025: [lldb/test] Test lldb-server named pipe functional...
Pavel Labath via All-commits
all-commits at lists.llvm.org
Tue Feb 16 06:48:10 PST 2021
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 85f025e5b33d148808177427eebca4cc14f93079
https://github.com/llvm/llvm-project/commit/85f025e5b33d148808177427eebca4cc14f93079
Author: Pavel Labath <pavel at labath.sk>
Date: 2021-02-16 (Tue, 16 Feb 2021)
Changed paths:
M lldb/test/API/tools/lldb-server/commandline/TestGdbRemoteConnection.py
Log Message:
-----------
[lldb/test] Test lldb-server named pipe functionality on windows
lldb-server can use a named pipe to communicate the port number it is
listening on. This windows bits of this are already implemented, but we
did not have a test for that, most likely because python does not have
native pipe functionality.
This patch implements the windows bits necessary to test this. I'm using
the ctypes package to call the native APIs directly to avoid a
dependency to non-standard python packages. This introduces some amount
of boilerplate, but our named pipe use case is fairly limited, so we
should not end up needing to wrap large chunks of windows APIs.
Surprisingly to changes to lldb-server were needed to make the test
pass.
Differential Revision: https://reviews.llvm.org/D96260
More information about the All-commits
mailing list