Add a simple regression test for 'target stop-hook list' with no target specified.

It should not crash lldb.

llvm-svn: 140421
This commit is contained in:
Johnny Chen 2011-09-23 21:34:40 +00:00
parent 737beaf86d
commit 12e27887cb
1 changed files with 5 additions and 0 deletions

View File

@ -12,6 +12,11 @@ class StopHookCmdTestCase(TestBase):
mydir = os.path.join("functionalities", "stop-hook")
# Regression test.
def test_not_crashing_if_no_target(self):
"""target stop-hook list should not crash if no target has been set."""
self.runCmd("target stop-hook list", check=False)
@unittest2.skipUnless(sys.platform.startswith("darwin"), "requires Darwin")
def test_with_dsym(self):
"""Test a sequence of target stop-hook commands."""