summaryrefslogtreecommitdiffstats
path: root/lldb/test
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test')
-rw-r--r--lldb/test/functionalities/alias/TestAliases.py4
-rw-r--r--lldb/test/functionalities/alias/welcome.py4
2 files changed, 8 insertions, 0 deletions
diff --git a/lldb/test/functionalities/alias/TestAliases.py b/lldb/test/functionalities/alias/TestAliases.py
index 4f43136f24d..bfcafa38fac 100644
--- a/lldb/test/functionalities/alias/TestAliases.py
+++ b/lldb/test/functionalities/alias/TestAliases.py
@@ -134,6 +134,10 @@ class AliasTestCase(TestBase):
self.expect('welcome Enrico',
substrs = ['Hello Enrico, welcome to LLDB']);
+
+ self.expect("help welcome",
+ substrs = ['Just a docstring for welcome_impl',
+ 'A command that says hello to LLDB users'])
self.runCmd("command script delete welcome");
diff --git a/lldb/test/functionalities/alias/welcome.py b/lldb/test/functionalities/alias/welcome.py
index db90e89ee4e..3b63c702327 100644
--- a/lldb/test/functionalities/alias/welcome.py
+++ b/lldb/test/functionalities/alias/welcome.py
@@ -1,6 +1,10 @@
import sys
def welcome_impl(debugger, args, result, dict):
+ """
+ Just a docstring for welcome_impl
+ A command that says hello to LLDB users
+ """
result.Printf('Hello ' + args + ', welcome to LLDB');
return None;
OpenPOWER on IntegriCloud