[lldb] Add tests for setting completions and enable 'settings remove' completion

llvm-svn: 369521
This commit is contained in:
Raphael Isemann 2019-08-21 12:57:06 +00:00
parent 045f33aec9
commit 006d22de50
2 changed files with 20 additions and 0 deletions

View File

@ -215,6 +215,24 @@ class CommandLineCompletionTestCase(TestBase):
'settings replace target.ru',
'settings replace target.run-args')
@skipIfFreeBSD # timing out on the FreeBSD buildbot
def test_settings_show_term(self):
self.complete_from_to(
'settings show term-',
'settings show term-width')
@skipIfFreeBSD # timing out on the FreeBSD buildbot
def test_settings_list_term(self):
self.complete_from_to(
'settings list term-',
'settings list term-width')
@skipIfFreeBSD # timing out on the FreeBSD buildbot
def test_settings_remove_term(self):
self.complete_from_to(
'settings remove term-',
'settings remove term-width')
@skipIfFreeBSD # timing out on the FreeBSD buildbot
def test_settings_s(self):
"""Test that 'settings s' completes to ['set', 'show']."""

View File

@ -613,6 +613,8 @@ public:
~CommandObjectSettingsRemove() override = default;
bool WantsCompletion() override { return true; }
int HandleArgumentCompletion(
CompletionRequest &request,
OptionElementVector &opt_element_vector) override {