[lldb] Fix TestVSCode_completions for clang 159a9f7

Printing of types has changed slightly.

Also improve the error messages the test gives when it fails.
This commit is contained in:
Pavel Labath 2020-03-26 10:23:13 +01:00
parent 71ae267d1f
commit 703a856a10
1 changed files with 3 additions and 3 deletions

View File

@ -17,10 +17,10 @@ class TestVSCode_variables(lldbvscode_testcase.VSCodeTestCaseBase):
def verify_completions(self, actual_list, expected_list, not_expected_list=[]):
for expected_item in expected_list:
self.assertTrue(expected_item in actual_list)
self.assertIn(expected_item, actual_list)
for not_expected_item in not_expected_list:
self.assertFalse(not_expected_item in actual_list)
self.assertNotIn(not_expected_item, actual_list)
@skipIfWindows
@skipIfDarwin # Skip this test for now until we can figure out why tings aren't working on build bots
@ -44,7 +44,7 @@ class TestVSCode_variables(lldbvscode_testcase.VSCodeTestCaseBase):
[
{
"text": "var",
"label": "var -- vector<basic_string<char, char_traits<char>, allocator<char> >, allocator<basic_string<char, char_traits<char>, allocator<char> > > > &",
"label": "var -- vector<basic_string<char, char_traits<char>, allocator<char>>, allocator<basic_string<char, char_traits<char>, allocator<char>>>> &",
}
],
[{"text": "var1", "label": "var1 -- int &"}],