summaryrefslogtreecommitdiffstats
path: root/lldb/test/help/TestHelp.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/help/TestHelp.py')
-rw-r--r--lldb/test/help/TestHelp.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/test/help/TestHelp.py b/lldb/test/help/TestHelp.py
index f4e631d5f9a..a6db2f6e59f 100644
--- a/lldb/test/help/TestHelp.py
+++ b/lldb/test/help/TestHelp.py
@@ -18,6 +18,13 @@ class HelpCommandTestCase(TestBase):
self.expect("help",
startstr = 'The following is a list of built-in, permanent debugger commands')
+ def test_help_version(self):
+ """Test 'help version' and 'version' commands."""
+ self.expect("help version",
+ substrs = ['Show version of LLDB debugger.'])
+ self.expect("version",
+ patterns = ['LLDB-[0-9]+'])
+
def test_help_should_not_hang_emacsshell(self):
"""Command 'settings set term-width 0' should not hang the help command."""
self.runCmd("settings set term-width 0")
OpenPOWER on IntegriCloud