[Lldb-commits] [lldb] 0762b2e - [lldb-vscode] Fix variable test

walter erquinigo via lldb-commits lldb-commits at lists.llvm.org
Wed Sep 6 19:52:14 PDT 2023


Author: walter erquinigo
Date: 2023-09-06T22:52:01-04:00
New Revision: 0762b2e6cacf9a1aa8b5e832206f4c94744d0150

URL: https://github.com/llvm/llvm-project/commit/0762b2e6cacf9a1aa8b5e832206f4c94744d0150
DIFF: https://github.com/llvm/llvm-project/commit/0762b2e6cacf9a1aa8b5e832206f4c94744d0150.diff

LOG: [lldb-vscode] Fix variable test

https://lab.llvm.org/buildbot/#/builders/68/builds/59499 caught a failed test introduced by https://github.com/llvm/llvm-project/commit/cf5d8def5cf66fbdfffa00a4845bd648ec58ed60.
The fix is simple. We just need to update some values.

Added: 
    

Modified: 
    lldb/test/API/tools/lldb-vscode/variables/TestVSCode_variables.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/tools/lldb-vscode/variables/TestVSCode_variables.py b/lldb/test/API/tools/lldb-vscode/variables/TestVSCode_variables.py
index 953f330e14a0f9..41292c71fa459e 100644
--- a/lldb/test/API/tools/lldb-vscode/variables/TestVSCode_variables.py
+++ b/lldb/test/API/tools/lldb-vscode/variables/TestVSCode_variables.py
@@ -507,12 +507,13 @@ def test_indexedVariables(self):
 
         # Verify locals
         locals = self.vscode.get_local_variables()
-        buffer_children = make_buffer_verify_dict(0, 32)
+        # The vector variables will have one additional entry from the fake
+        # "[raw]" child.
         verify_locals = {
             "small_array": {"equals": {"indexedVariables": 5}},
             "large_array": {"equals": {"indexedVariables": 200}},
-            "small_vector": {"equals": {"indexedVariables": 5}},
-            "large_vector": {"equals": {"indexedVariables": 200}},
+            "small_vector": {"equals": {"indexedVariables": 6}},
+            "large_vector": {"equals": {"indexedVariables": 201}},
             "pt": {"missing": ["indexedVariables"]},
         }
         self.verify_variables(verify_locals, locals)


        


More information about the lldb-commits mailing list