summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-12-20 01:52:44 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-12-20 01:52:44 +0000
commit50660440a192a5769e63ff41bff27423c374c98f (patch)
tree597eddda852f94c5df9f4811cdad084c524b616b /lldb/test/python_api
parent0ffc31c55b0981c4d15e6da2387035938f19ab26 (diff)
downloadbcm5719-llvm-50660440a192a5769e63ff41bff27423c374c98f.tar.gz
bcm5719-llvm-50660440a192a5769e63ff41bff27423c374c98f.zip
Work in progress for:
rdar://problem/10577182 Audit lldb API impl for places where we need to perform a NULL check Add a NULL check for SBValue.CreateValueFromExpression(). llvm-svn: 146954
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/value/change_values/TestChangeValueAPI.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
index d2d9b1406b4..d5ecb1600a3 100644
--- a/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
+++ b/lldb/test/python_api/value/change_values/TestChangeValueAPI.py
@@ -130,6 +130,10 @@ class ChangeValueAPITestCase(TestBase):
self.assertTrue (error.Success(), "Got a changed value for sp")
self.assertTrue (actual_value == 1, "Got the right changed value for sp.")
+ # Boundary condition test the SBValue.CreateValueFromExpression() API.
+ # LLDB should not crash!
+ nosuchval = mine_value.CreateValueFromExpression(None, None)
+
process.Continue()
self.assertTrue(process.GetState() == lldb.eStateStopped)
OpenPOWER on IntegriCloud