Add a comment explaining the eCommandRequiresTarget test
llvm.org/pr23686
llvm-svn: 238438
diff --git a/lldb/test/functionalities/command_script/TestCommandScript.py b/lldb/test/functionalities/command_script/TestCommandScript.py
index d4210b4..61685d8 100644
--- a/lldb/test/functionalities/command_script/TestCommandScript.py
+++ b/lldb/test/functionalities/command_script/TestCommandScript.py
@@ -25,6 +25,8 @@
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)