summaryrefslogtreecommitdiffstats
path: root/lldb/test/functionalities/command_script/TestCommandScript.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/functionalities/command_script/TestCommandScript.py')
-rw-r--r--lldb/test/functionalities/command_script/TestCommandScript.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lldb/test/functionalities/command_script/TestCommandScript.py b/lldb/test/functionalities/command_script/TestCommandScript.py
index d4210b44f90..61685d833ec 100644
--- a/lldb/test/functionalities/command_script/TestCommandScript.py
+++ b/lldb/test/functionalities/command_script/TestCommandScript.py
@@ -25,6 +25,8 @@ class CmdPythonTestCase(TestBase):
def pycmd_tests (self):
self.runCmd("command source py_import")
+ # Verify command that specifies eCommandRequiresTarget returns failure
+ # without a target.
self.expect('targetname',
substrs = ['a.out'], matching=False, error=True)
OpenPOWER on IntegriCloud