diff options
author | Raphael Isemann <teemperor@gmail.com> | 2019-08-27 11:32:22 +0000 |
---|---|---|
committer | Raphael Isemann <teemperor@gmail.com> | 2019-08-27 11:32:22 +0000 |
commit | 5edee822d2f80e23c9e465394bac6d9c31468406 (patch) | |
tree | ae5e04768f5a6f64bab9f0786945e12f0d330f2d /lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py | |
parent | b1f29cec251188a594148f7a53d063281d4ef155 (diff) | |
download | bcm5719-llvm-5edee822d2f80e23c9e465394bac6d9c31468406.tar.gz bcm5719-llvm-5edee822d2f80e23c9e465394bac6d9c31468406.zip |
[lldb] Allow partial completions to fix directory completion.
On the command line we usually insert a space after a completion to indicate that
the completion was successful. After the completion API refactoring, this also
happens with directories which essentially breaks file path completion (as
adding a space terminates the path and starts a new arg). This patch restores the old
behavior by again allowing partial completions. Also extends the iohandler
and SB API tests as the implementation for this is different in Editline
and SB API.
llvm-svn: 370043
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py')
-rw-r--r-- | lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py index b95d490c887..0b5b3a416a0 100644 --- a/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py +++ b/lldb/packages/Python/lldbsuite/test/functionalities/completion/TestCompletion.py @@ -137,6 +137,13 @@ class CommandLineCompletionTestCase(TestBase): self.complete_from_to('log enable lldb expr -f ' + src_dir, ['main.cpp']) + @skipIfFreeBSD # timing out on the FreeBSD buildbot + def test_log_file(self): + # Complete in our source directory which contains a 'main.cpp' file. + src_dir = os.path.dirname(os.path.realpath(__file__)) + self.complete_from_to('log enable lldb expr -f ' + src_dir, + [src_dir + "/"]) + # <rdar://problem/11052829> @skipIfFreeBSD # timing out on the FreeBSD buildbot def test_infinite_loop_while_completing(self): |