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    NO_DEBUG_INFO_TESTCASE = True
14
15    def test_target_var_no_vars(self):
16        self.build()
17        lldbutil.run_to_name_breakpoint(self, 'main')
18        self.expect("target variable", substrs=['no global variables in current compile unit', 'main.c'], error=True)
19
20