summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api/default-constructor/sb_module.py
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/test/python_api/default-constructor/sb_module.py')
-rw-r--r--lldb/test/python_api/default-constructor/sb_module.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/lldb/test/python_api/default-constructor/sb_module.py b/lldb/test/python_api/default-constructor/sb_module.py
new file mode 100644
index 00000000000..6b2820e3cf3
--- /dev/null
+++ b/lldb/test/python_api/default-constructor/sb_module.py
@@ -0,0 +1,19 @@
+"""
+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.GetFileSpec()
+ obj.GetPlatformFileSpec()
+ obj.SetPlatformFileSpec(lldb.SBFileSpec())
+ obj.GetUUIDBytes()
+ obj.GetUUIDString()
+ obj.ResolveFileAddress(sys.maxint, lldb.SBAddress())
+ obj.ResolveSymbolContextForAddress(lldb.SBAddress(), 0)
+ obj.GetDescription(lldb.SBStream())
+ obj.GetNumSymbols()
+ obj.GetSymbolAtIndex(sys.maxint)
+ obj.FindFunctions("my_func", 0xffffffff, True, lldb.SBSymbolContextList())
OpenPOWER on IntegriCloud