brintos

brintos / llvm-project-archived public Read only

0
0
Text · 551 B · 5c5c784 Raw
22 lines · python
1"""2Test that target var with no variables returns a correct error3"""4 5import lldb6from lldbsuite.test.decorators import *7from lldbsuite.test.lldbtest import *8from lldbsuite.test import lldbutil9 10 11class TestTargetVarNoVars(TestBase):12    NO_DEBUG_INFO_TESTCASE = True13 14    def test_target_var_no_vars(self):15        self.build()16        lldbutil.run_to_name_breakpoint(self, "main")17        self.expect(18            "target variable",19            substrs=["no global variables in current compile unit", "main.c"],20            error=True,21        )22