Skip to content

Commit 389d789

Browse files
committed
Update testcase after DataFormatter caching bugfix (https://reviews.llvm.org/D71233)
1 parent e7e4e4a commit 389d789

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lldb/packages/Python/lldbsuite/test/lang/swift/variables/objc_optionals/TestSwiftObjCOptionals.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,20 @@ def do_check_visuals(self):
5656
def do_check_api(self):
5757
"""Check formatting for T? and T! when T is an ObjC type"""
5858
optColor_Some = self.frame().FindVariable("optColor_Some")
59+
60+
# SwiftOptionalSyntheticFrontEnd passes GetNumChildren
61+
# through to the .some object. NSColor has no children.
5962
lldbutil.check_variable(
6063
self,
6164
optColor_Some,
6265
use_dynamic=False,
63-
num_children=1)
66+
num_children=0)
6467
uoptColor_Some = self.frame().FindVariable("uoptColor_Some")
6568
lldbutil.check_variable(
6669
self,
6770
uoptColor_Some,
6871
use_dynamic=False,
69-
num_children=1)
72+
num_children=0)
7073

7174
if __name__ == '__main__':
7275
import atexit

0 commit comments

Comments
 (0)