Files
clang-p2996/lldb/test/API/functionalities/target_var/no_vars/TestTargetVarNoVars.py
Dave Lee 4cc8f2a017 [lldb][tests] Automatically call compute_mydir (NFC)
Eliminate boilerplate of having each test manually assign to `mydir` by calling
`compute_mydir` in lldbtest.py.

Differential Revision: https://reviews.llvm.org/D128077
2022-06-17 14:34:49 -07:00

20 lines
506 B
Python

"""
Test that target var with no variables returns a correct error
"""
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
from lldbsuite.test import lldbutil
class TestTargetVarNoVars(TestBase):
NO_DEBUG_INFO_TESTCASE = True
def test_target_var_no_vars(self):
self.build()
lldbutil.run_to_name_breakpoint(self, 'main')
self.expect("target variable", substrs=['no global variables in current compile unit', 'main.c'], error=True)