summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/sb_breakpoint.py
diff options
context:
space:
mode:
authorJohnny Chen <johnny.chen@apple.com>2011-06-24 18:49:27 +0000
committerJohnny Chen <johnny.chen@apple.com>2011-06-24 18:49:27 +0000
commit1bd3d731d96e70eb0da46c2b06881c04d71afe53 (patch)
tree9dc48a9c1038497e0a544fe25728417f6f9ad466 /lldb/test/python_api/default-constructor/sb_breakpoint.py
parent3c9ede62f69a02223622e18877cfb44456cd419e (diff)
downloadbcm5719-llvm-1bd3d731d96e70eb0da46c2b06881c04d71afe53.tar.gz
bcm5719-llvm-1bd3d731d96e70eb0da46c2b06881c04d71afe53.zip
Add fuzz calls for SBBreakpoint.
llvm-svn: 133809
Diffstat (limited to 'lldb/test/python_api/default-constructor/sb_breakpoint.py')
-rw-r--r--lldb/test/python_api/default-constructor/sb_breakpoint.py33
1 files changed, 33 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_breakpoint.py b/lldb/test/python_api/default-constructor/sb_breakpoint.py
new file mode 100644
index 00000000000..5ea5c62ad3e
--- /dev/null
+++ b/lldb/test/python_api/default-constructor/sb_breakpoint.py
@@ -0,0 +1,33 @@
+"""
+Fuzz tests an object after the default construction to make sure it does not crash lldb.
+"""
+
+import sys
+import lldb
+
+def fuzz_obj(obj):
+ obj.GetID()
+ obj.ClearAllBreakpointSites()
+ obj.FindLocationByAddress(sys.maxint)
+ obj.FindLocationIDByAddress(sys.maxint)
+ obj.FindLocationByID(0)
+ obj.GetLocationAtIndex(0)
+ obj.SetEnabled(True)
+ obj.IsEnabled()
+ obj.GetHitCount()
+ obj.SetIgnoreCount(1)
+ obj.GetIgnoreCount()
+ obj.SetCondition("i >= 10")
+ obj.GetCondition()
+ obj.SetThreadID(0)
+ obj.GetThreadID()
+ obj.SetThreadIndex(0)
+ obj.GetThreadIndex()
+ obj.SetThreadName("worker thread")
+ obj.GetThreadName()
+ obj.SetQueueName("my queue")
+ obj.GetQueueName()
+ obj.SetCallback(None, None)
+ obj.GetNumResolvedLocations()
+ obj.GetNumLocations()
+ obj.GetDescription(lldb.SBStream())
OpenPOWER on IntegriCloud