summaryrefslogtreecommitdiff
path: root/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py
diff options
context:
space:
mode:
Diffstat (limited to 'packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py')
-rw-r--r--packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py17
1 files changed, 16 insertions, 1 deletions
diff --git a/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py b/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py
index 6531cd672..9542d0264 100644
--- a/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py
+++ b/packages/Python/lldbsuite/test/commands/command/script/TestCommandScript.py
@@ -4,7 +4,7 @@ Test lldb Python commands.
from __future__ import print_function
-
+import sys
import lldb
from lldbsuite.test.decorators import *
from lldbsuite.test.lldbtest import *
@@ -22,6 +22,21 @@ class CmdPythonTestCase(TestBase):
def pycmd_tests(self):
self.runCmd("command source py_import")
+ # Test a bunch of different kinds of python callables with
+ # both 4 and 5 positional arguments.
+ self.expect("foobar", substrs=["All good"])
+ self.expect("foobar4", substrs=["All good"])
+ self.expect("vfoobar", substrs=["All good"])
+ self.expect("v5foobar", substrs=["All good"])
+ self.expect("sfoobar", substrs=["All good"])
+ self.expect("cfoobar", substrs=["All good"])
+ self.expect("ifoobar", substrs=["All good"])
+ self.expect("sfoobar4", substrs=["All good"])
+ self.expect("cfoobar4", substrs=["All good"])
+ self.expect("ifoobar4", substrs=["All good"])
+ self.expect("ofoobar", substrs=["All good"])
+ self.expect("ofoobar4", substrs=["All good"])
+
# Verify command that specifies eCommandRequiresTarget returns failure
# without a target.
self.expect('targetname',