[Lldb-commits] [PATCH] D152013: [lldb/Commands] Fix disk completion from root directory
Med Ismail Bennani via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Sat Jun 3 00:19:46 PDT 2023
mib marked an inline comment as done.
mib added inline comments.
================
Comment at: lldb/test/API/functionalities/completion/TestCompletion.py:439-450
+ def test_completion_target_create_from_root_dir(self):
+ """Tests source file completion by completing ."""
+ root_dir = os.path.abspath(os.sep)
+ self.completions_contain(
+ "target create /",
+ list(
+ filter(
----------------
bulbazord wrote:
> I'm curious to know if this will work for windows? I don't know how lldb treats `/` as a path when on a windows host.
>
> `root_dir` should be `os.path.abspath('\\')` on windows, which might give you `C:\` or whatever the current drive is, so that path might possibly give you something? Idk, you might have to fiddle with the test to get it to work correctly or disable it.
I don't have a windows machine to try this on (some help would be appreciated here :p) but `os.path.abspath(os.sep)` should cover that part.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D152013/new/
https://reviews.llvm.org/D152013
More information about the lldb-commits
mailing list