Skip to content

Commit 0762b2e

Browse files
author
walter erquinigo
committed
[lldb-vscode] Fix variable test
https://lab.llvm.org/buildbot/#/builders/68/builds/59499 caught a failed test introduced by cf5d8de. The fix is simple. We just need to update some values.
1 parent fd4c80d commit 0762b2e

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -507,12 +507,13 @@ def test_indexedVariables(self):
507507

508508
# Verify locals
509509
locals = self.vscode.get_local_variables()
510-
buffer_children = make_buffer_verify_dict(0, 32)
510+
# The vector variables will have one additional entry from the fake
511+
# "[raw]" child.
511512
verify_locals = {
512513
"small_array": {"equals": {"indexedVariables": 5}},
513514
"large_array": {"equals": {"indexedVariables": 200}},
514-
"small_vector": {"equals": {"indexedVariables": 5}},
515-
"large_vector": {"equals": {"indexedVariables": 200}},
515+
"small_vector": {"equals": {"indexedVariables": 6}},
516+
"large_vector": {"equals": {"indexedVariables": 201}},
516517
"pt": {"missing": ["indexedVariables"]},
517518
}
518519
self.verify_variables(verify_locals, locals)

0 commit comments

Comments
 (0)