• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""
2Test that target var with no variables returns a correct error
3"""
4
5import lldb
6from lldbsuite.test.decorators import *
7from lldbsuite.test.lldbtest import *
8from lldbsuite.test import lldbutil
9
10
11class TestTargetVarNoVars(TestBase):
12
13    mydir = TestBase.compute_mydir(__file__)
14
15    NO_DEBUG_INFO_TESTCASE = True
16
17    def test_target_var_no_vars(self):
18        self.build()
19        lldbutil.run_to_name_breakpoint(self, 'main')
20        self.expect("target variable", substrs=['no global variables in current compile unit', 'main.c'], error=True)
21
22