Skip to content

Commit 784a8a8

Browse files
committed
Revert "Revert "[lldb] Annotate check with use_dynamic""
This reverts commit 0638894.
1 parent 0638894 commit 784a8a8

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lldb/test/API/lang/swift/unknown_reference/TestSwiftUnknownReference.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class TestSwiftUnknownReference(lldbtest.TestBase):
2121
mydir = lldbtest.TestBase.compute_mydir(__file__)
2222

2323
def check_class(self, var_self):
24-
lldbutil.check_variable(self, var_self, num_children=2)
24+
lldbutil.check_variable(self, var_self, use_dynamic=True, num_children=2)
2525
m_base_string = var_self.GetChildMemberWithName("base_string")
2626
m_string = var_self.GetChildMemberWithName("string")
2727
lldbutil.check_variable(self, m_base_string, summary='"hello"')

lldb/test/API/lang/swift/unknown_self/TestSwiftUnknownSelf.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,9 @@ class TestSwiftUnknownSelf(lldbtest.TestBase):
2020

2121
def check_class(self, var_self, weak):
2222
self.expect("v self", substrs=["hello", "world"])
23-
lldbutil.check_variable(self, var_self, num_children=2)
23+
# FIXME: This is inconsistent. If self is Optional, an extra
24+
# indirection is needed.
25+
lldbutil.check_variable(self, var_self, num_children=2 if weak else 1)
2426
m_base_string = var_self.GetChildMemberWithName("base_string")
2527
m_string = var_self.GetChildMemberWithName("string")
2628
# FIXME: This is inconsistent. If self is Optional, an extra

0 commit comments

Comments
 (0)