brintos

brintos / llvm-project-archived public Read only

0
0
Text · 806 B · d2ee48d Raw
19 lines · python
1import lldb2from lldbsuite.test.decorators import *3from lldbsuite.test.lldbtest import *4from lldbsuite.test import lldbutil5 6 7class TestCase(TestBase):8    def test_summary_string_with_bare_dollar_char(self):9        self.build()10        lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))11        self.runCmd("type summary add --summary-string '$ $CASH $' --no-value Dollars")12        self.expect("v cash", startstr="(Dollars) cash = $ $CASH $")13 14    def test_summary_string_with_bare_dollar_char_before_var(self):15        self.build()16        lldbutil.run_to_source_breakpoint(self, "break here", lldb.SBFileSpec("main.c"))17        self.runCmd("type summary add --summary-string '$${var}' --no-value Dollars")18        self.expect("v cash", startstr="(Dollars) cash = $99")19