summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-12-19 21:36:23 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-12-19 21:36:23 +0000
commita7154527575fb71773809dacf033fb37ef276e7c (patch)
treeb35d368af97ab9abc28a7e2f0b757c35db48b024 /lldb/test/python_api
parent4db839a8d4dd5fe19acf996f89271fe62930b633 (diff)
downloadbcm5719-llvm-a7154527575fb71773809dacf033fb37ef276e7c.tar.gz
bcm5719-llvm-a7154527575fb71773809dacf033fb37ef276e7c.zip
Work in progress for:
rdar://problem/10577182 Audit lldb API impl for places where we need to perform a NULL check Add NULL checks for SBCommandReturnObject.AppendMessage(). llvm-svn: 146911
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
index 3cbbe27522f..1ab3dc4dbc6 100644
--- a/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
+++ b/lldb/test/python_api/interpreter/TestCommandInterpreterAPI.py
@@ -64,6 +64,10 @@ class CommandInterpreterAPICase(TestBase):
self.assertFalse(ci.AliasExists(None))
ci.HandleCommand(None, res)
self.assertFalse(res.Succeeded())
+ res.AppendMessage("Just appended a message.")
+ res.AppendMessage(None)
+ if self.TraceOn():
+ print res
process = ci.GetProcess()
self.assertTrue(process)
OpenPOWER on IntegriCloud