Skip to content

Commit 0e8ddf0

Browse files
committed
Test for no expansion when summary formatter is present
1 parent 668e91d commit 0e8ddf0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lldb/test/API/commands/dwim-print/objc/TestDWIMPrintObjC.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,11 @@ def test(self):
1717
self.expect(
1818
"dwim-print parent.child", patterns=[r'_name = 0x[0-9a-f]+ @"Seven"']
1919
)
20+
21+
@skipUnlessDarwin
22+
def test_with_summary(self):
23+
self.build()
24+
lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.m"))
25+
self.runCmd("type summary add -s 'Parent of ${var._child._name}' 'Parent *'")
26+
self.expect("dwim-print parent", matching=False, substrs=["_child = 0x"])
27+
self.expect("dwim-print parent", substrs=['Parent of @"Seven"'])

0 commit comments

Comments
 (0)