Author: Pavel Labath Date: 2020-03-26T10:24:33+01:00 New Revision: 703a856a1005b651a9087ad16b6df2cc19883dc0
URL: https://github.com/llvm/llvm-project/commit/703a856a1005b651a9087ad16b6df2cc19883dc0 DIFF: https://github.com/llvm/llvm-project/commit/703a856a1005b651a9087ad16b6df2cc19883dc0.diff LOG: [lldb] Fix TestVSCode_completions for clang 159a9f7 Printing of types has changed slightly. Also improve the error messages the test gives when it fails. Added: Modified: lldb/test/API/tools/lldb-vscode/completions/TestVSCode_completions.py Removed: ################################################################################ diff --git a/lldb/test/API/tools/lldb-vscode/completions/TestVSCode_completions.py b/lldb/test/API/tools/lldb-vscode/completions/TestVSCode_completions.py index 155d476bb58a..06ab8f414549 100644 --- a/lldb/test/API/tools/lldb-vscode/completions/TestVSCode_completions.py +++ b/lldb/test/API/tools/lldb-vscode/completions/TestVSCode_completions.py @@ -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 @@ def test_completions(self): [ { "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 &"}], _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits