diff options
| author | Johnny Chen <johnny.chen@apple.com> | 2011-09-23 21:34:40 +0000 |
|---|---|---|
| committer | Johnny Chen <johnny.chen@apple.com> | 2011-09-23 21:34:40 +0000 |
| commit | 12e27887cb4cf8c8f1c2e72f7c5741724ad0edc7 (patch) | |
| tree | c1d6169f6e7ca4914a08654c72709ae314c4d233 /lldb/test/functionalities/stop-hook | |
| parent | 737beaf86de6acab27eb1ec873e8db9fdb33302f (diff) | |
| download | bcm5719-llvm-12e27887cb4cf8c8f1c2e72f7c5741724ad0edc7.tar.gz bcm5719-llvm-12e27887cb4cf8c8f1c2e72f7c5741724ad0edc7.zip | |
Add a simple regression test for 'target stop-hook list' with no target specified.
It should not crash lldb.
llvm-svn: 140421
Diffstat (limited to 'lldb/test/functionalities/stop-hook')
| -rw-r--r-- | lldb/test/functionalities/stop-hook/TestStopHookCmd.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/test/functionalities/stop-hook/TestStopHookCmd.py b/lldb/test/functionalities/stop-hook/TestStopHookCmd.py index 1e5d48ed4e1..bb2eaf2310f 100644 --- a/lldb/test/functionalities/stop-hook/TestStopHookCmd.py +++ b/lldb/test/functionalities/stop-hook/TestStopHookCmd.py @@ -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.""" |

